INSTRUCTIONS FOR USE OF ASCTOCNT:
CONVERSION FROM ASCII DATA TO NEUROSCAN CONTINUOUS FORMAT

The syntax from the command line is as follows:

ASCTOCNT <fn_ascii> <fn_set> {scale} {range}

where:

    <fn_ascii> is the name of the ASCII file containing the data to be
               converted.  The data must be in multiplexed format; i.e., the
               columns correspond to channels, and the rows correspond to
               time points.  Each number must be separated by at least one
               space or a carriage return.

    <fn_set>   is the name of a Neuro Scan setup (.SET) file created with
               the ACQUIRE module of SCAN.  The number of channels, names of
               channels, order of channels, digitization rate, and other 
               acquisition values must match the ASCII data.

    {scale}    is an optional factor for scaling the data to microvolts.  If
               this 3rd parameter is omitted, it is assumed that the ASCII
               data are already scaled to microvolts.  If this is not the
               case, enter a factor here that will multiply with the ASCII
               values to produce microvolt-scaled values.  Note that the 
               default value is 204.8 (if the ASCII data are already scaled).

    {range}    is an optional factor for adjusting the data to fit within
               a valid range, to prevent integer overflow.  The CNT file data
               are stored as signed 2-byte integers, with a range of about
               +/- 32K.  Overflow occurs when a too-positive integer "wraps
               around" and becomes negative, or vice versa.  Scaling up the
               range factor scales down the integer data by the same factor. 
               Thus, the range factor should be increased to eliminate
               possible overflow.  The program defaults to a range factor of 2.
               Note that the scale factor must also be provided when specifying
               the range factor.

