4 viewing a converted file, 5 running cardconvert from a command line, 2 transformer utility – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 200: 2 transformer utility -6

Advertising
background image

Section 10. Utilities

processing the file allows you to recover all good data on a card with more than
one corrupted frame.

Note that CardConvert can repair only TOB2 or TOB3 files. TOB1 files cannot
be repaired.

The Repair File option should be used only if a standard
conversion cannot be done.

NOTE

10.1.4 Viewing a Converted File

Converted data files can be reviewed using the View file viewing application.
View can be launched by pressing the View Files button. If a file is highlighted
in the list of files, that file will be displayed when View is opened. Otherwise
you can select the file to view from View’s File | Open menu.

10.1.5 Running CardConvert from a Command Line

In order to run CardConvert from a command line without user interaction, you
will first need to create a CCF file that contains the CardConvert settings to be
used when running from a command line. To create the CCF file, open
CardConvert and select the desired source directory (Select Card Drive),
destination directory (Change Output Dir), and Destination File Options. When
CardConvert is closed, it will produce a file named “lastrun.ccf” that contains
the designated settings. The file will be written to the
C:\Campbellsci\CardConvert directory. You should rename this file as it will
be overwritten the next time that CardConvert is closed.

When running CardConvert from a command line, you can designate the CCF
file using the command line option runfile. For example,

"C:\Program Files\Campbellsci\CardConvert\CardConvert.exe"
runfile=“C:\Campbellsci\CardConvert\myfile.ccf”

The above command line will run CardConvert using the settings contained in
myfile.ccf.

If there are no problems or questions encountered, CardConvert will start,
convert the file(s), and then exit with no user interaction. However, if any
problems or questions are encountered, CardConvert will display a dialog box
as usual and then wait for a user response. Therefore, this command line option
allows some automation of CardConvert but does not allow for completely
unattended automation. To minimize the user interaction required, the
Destination File Option “Create New Filenames” should be used as this
prevents CardConvert from asking whether a file should be overwritten.

10.2 Transformer Utility

The Transformer application converts a datalogger program created in Edlog to
a CRBasic program. The original file and the transformed file are displayed
side-by-side so they can easily be compared. The transformer can be an
excellent tool for those familiar with programming in Edlog to learn CRBasic
programming.

10-6

Advertising