9 c — clear data area quickly – Campbell Scientific CSM1 Card Storage Module User Manual

Page 57

Advertising
background image

SMCRead

5

2.9 C — Clear Data Area Quickly

This option is similar to the E option, with the exception that it does not do a
full memory test. Instead SMCRead uses the ‘1249K’ command to erase the
card memory and reset the pointers. Before this, SMCRead temporarily
offloads all programs present in the card to disk. After erasure the programs
are reloaded into the card so that only data is erased.

As with the E option, you are asked to verify that you wish to proceed with
erasing the card.

As with options P and D, program reading and loading are subject to
verification procedures. If SMCRead is unable to reload a program back into
the card, a warning is displayed and a temporary file containing the program is
retained on disk. Such temporary files are named
T1249K1.DLD...T1249K8.DLD depending on the program area in which the
program is stored in the card. If an error occurs, you should copy or rename
the files that have not been loaded into the card before investigating the
problem. The file can later be loaded manually using the D option.

If the card is corrupted do not use the C option initially. Use the E option to
fully test and reset the card.

2.10 S — Show the Position and Size of the Files in the Card

This option asks SMCRead to scan through the card and report the position and
types of files found in the card. A listing is written to the screen which is
similar to a DOS directory listing, where the type of file, its size plus the
beginning and end locations are shown. This information can be used to
determine how many files are in the card and detect any wasted space. The
start position of data files can be used with the L option to read specific files
from the card.

There are three different types of files that the Show option will list:

A data file, i.e. datalogger data. The Show option assigns a number to the
file which starts at one at the beginning of the card and increments for
each new data file.

A program file, shown with the number assigned when the program was
loaded into the card.

A deleted program file, which is an area of the card which was previously
used by a program but which is now unused because a program with the
same number has been loaded again.

In addition, the program and deleted programs may be shown as being hidden
if the program is stored next to, or within, a data file without filemarks at the
beginning and end of the program. Where the program is stored in the middle
of a data file (a rare event) the start and end of the data file will encompass
both the program and data, but the file size will be the length of the data alone.

Advertising