Instruction manual

PC208W, Version 3.0, Instruction Manual 6-1
SECTION 6. PROGRAM CONVERSION
6.1 DOC2CSI
DOC2CSI is an easy-to-use DOS utility that
converts datalogger programs created with
Edlog Version 5.4 or earlier (*.DOC files) to the
*.CSI format files used by more recent versions
of Edlog (DOS Version 6.2 or greater and
Windows PC208W Version 2.0 or greater).
Conversion of these older files allows you to
use them with PC208W without performing the
time-consuming task of recreating each
program.
6.1.1 COPYING PROGRAM FILES
Though the DOC2CSI utility is not a menu option
that can be invoked from PC208W, it has been
shipped as part of the PC208W software suite.
When the PC208W software is installed, DOC2CSI
is installed in the PC208W\BIN directory.
DOC2CSI could be run from the PC208W\BIN
directory. However, to avoid inadvertently
overwriting critical program data, you should
copy the DOC2CSI program files (and, for
convenience, your old program files) to the
PC208W working directory.
NOTE: If you choose a folder name other
than the default for the PC208W program
when installing the software, your PC208W
working directory will be different than that
used as the example in this section.
Invoke a DOS command line and change to the
PC208W working directory (i.e., C:\PC208W).
Both Windows 3.X and Windows 95/NT will
allow you to “shell out” to DOS by clicking on an
MS-DOS icon, or, with Windows 95, choosing
Command Prompt from the Start menu.
To copy the DOC2CSI program to the PC208W
directory, at the C:\PC208W prompt type:
copy .\bin\doc2csi.exe
You should receive a message that the file was
copied successfully.
To copy all of your existing program files to the
PC208W directory, at the C:\PC208W prompt
type:
copy c:\
oldfiles
\*.dld
and
copy c:\
oldfiles
\*.doc
where
oldfiles
is the full directory path where
your existing files are located.
6.1.2 RUNNING DOC2CSI
To run DOC2CSI, at the C:\PC208W command
line type the following command string:
bin\doc2csi
oldname
newname
loggertype
where,
oldname
is the *.DOC filename
newname
is the filename for the new *.CSI
file that will be created
loggertype is the type of datalogger for
which the program was written. Valid entries
are 21X, CR7, CR10, CR10X, and CR10T.
It is not necessary to type the *.DOC and *.CSI
extensions for the files in the command string.
If you did not copy your existing program files to
the PC208W working directory as suggested
above, you will need to include the
oldname
file’s full directory path.
If you forget the format of the command string,
you can type DOC2CSI at the DOS prompt and
the program will provide syntax information.
6.1.3 EXAMPLE USAGE
As an example, if you want to convert a
program named
weather.doc
to a CSI format
file named
weather1
for use on a CR10X, you
would type the following at the C:\PC208W
prompt:
bin\doc2csi
weather
weather1
CR10X
DOC2CSI will create the file
weather1.CSI
.
This new file will be placed in the PC208W
working directory. (Again, the above example
assumes that the file
weather.doc
resides in the
working directory.)
DOC2CSI does not create a new program
*.DLD file. However, when the file is retrieved
into Edlog and recompiled (Edlog is invoked by
pressing the Program button in PC208W), a
*.DLD file will be created.