5 viewing a converted file, 6 running cardconvert from a command line – Campbell Scientific RTDAQ Software User Manual

Page 276

Advertising
background image

Section 10. Utilities

When CardConvert comes to what it believes is the end of the data file during
the repair process (the end of valid frames), it will stop and display a message.
The message prompts the user either to continue searching the file for more
good data frames or to stop the repair process. CardConvert displays the last
time stamp for data in the repaired file. If you think there should be additional
data on the card, you can continue to run the repair process. If it appears that
all the data has been stored to the new file, you can stop. The option to
continue 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.5 Viewing a Converted File

Converted data files can be reviewed using the View Pro file viewing
application. View Pro 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 Pro
is opened. Otherwise you can select the file to view from View Pro's File |
Open
menu.

10.1.6 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-6

Advertising