4 viewing a converted file, 5 running cardconvert from a command line, Viewing a converted file -91 – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 389: Running cardconvert from a command line -91

Advertising
background image

Section 8. Working with Data Files on the PC

In some instances, data on a card can become corrupted. Corruption can occur

if the card is subjected to electrostatic discharge or if it is removed when data is

being written to the card (e.g., the card is removed from the CFM100 without

pressing the Card Control button to stop data storage to the card). This

corruption can be at the beginning of the data file or anywhere within the

stored data. Using the standard conversion option, CardConvert will stop if it

encounters a corrupted frame of data because it assumes it has come to the end

of the data file. If corrupted frames of data are found at the beginning of the

file, CardConvert will display a message indicating that no data could be found

on the card. If corrupted frames of data are found within the data file, you may

get some, but not all, of the data that you expect in the converted file.

CardConvert offers a repair option, which will attempt to scan the card for

good frames of data and output that data to a new binary file (the original file is

unchanged). To start the repair of a file, highlight the suspected corrupt file in

the list of Source Filenames and right-click to display a floating menu. Select

the Repair File option from the list. The repair process will create a new TOB3

file (the default name is Repair_existingfilename), which can then be converted

to an ASCII file using the standard CardConvert process.

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.

8.3.4 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.

8.3.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.

NOTE

8-91

Advertising