function cportgetdouble;
%function Params[data,err]=cportstate(H,ndata) retrieves data from a 
%previously opened serial or parallel port. Useful to receive binary data
%including aciicode=0 (unlike cportgetchar). The parameters are: 
%
%Input:
%------
%  H     - The port handle returned by cportopen.
%  ndata - The number of characters to read. If omitted, the default is
%          ndata = 1.
%Output:
%-------
%  data  - A data array (vector of double) containing the retreived characters.
%  err   - Optional error flag, 1 for success and 0 for failure.
%

% Written by Eyal Doron, July 1999
% Altered by Ivo Viscor, March 2000

error('CPORTGETDOUBLE is implemented in a MEX file.');

