• Data-File Format Examples (p. 379)
• Data Storage Drives Table (p. 373)
The best method for writing high-frequency time-series data to memory cards,
especially in high-speed measurement applications, is usually to use the
TableFile() instruction with Option 64. It supports 16 GB or smaller memory
cards and permits smaller and variable file sizes.
7.9.11.1 TableFile() with Option 64
Option 64 has been added as a format option for the CRBasic instruction
TableFile(). It combines the speed and efficiency of the CardOut() instruction
with the flexibility of the TableFile() instruction. Memory cards
1
up to 16 GB are
supported. TableFile() is a CRBasic instruction that creates a file from a data
table in datalogger CPU memory. Option 64 directs that the file be written in
TOB3 format exclusively to the CRD: drive
2
.
Syntax for the TableFile() instruction is as follows:
TableFile(FileName, Option, MaxFiles, NumRecs/
TimeIntoInterval, Interval, Units, OutStat, LastFileName)
where Option is given the argument of 64. Refer to CRBasic Editor Help
3
for a
detailed description of each parameter.
Note The CRD: drive (the drive designation for the optional memory card) is the
only drive that is allowed for use with Option 64.
Note Memory cards add a measure of security in guarding against data loss.
However, no system is infallible. Finding a functioning memory card in the mud
after a moose has trampled your weather station or a tractor has run an offset disk
over your soil-moisture station may be difficult. The best rule is to collect data
from the CR1000 only as often as you can afford to lose the data. In other words,
if you can afford to lose a months worth of data, you can afford to collect the data
only once a month.
1
Memory cards for the CR1000 are the compact flash (CF) type.
2
The CRD: drive is a memory drive created when a memory card is connected into the CR1000
through the appropriate peripheral device. The CR1000 is adapted for CF use by addition of the
NL115 or CFM100 modules. NL115 and CFM100 modules are available at additional cost from
Campbell Scientific.
3
CRBasic Editor is included in Campbell Scientific datalogger support software (p. 95) suites
LoggerNet, PC400, and RTDAQ.
7.9.11.2 TableFile() with Option 64 Replaces CardOut()
TableFile() with Option 64 has several advantages over CardOut() when used in
most applications. These include:
• Allowing multiple small files to be written from the same data table so that
storage for a single table can exceed 2 GB. TableFile() controls the size of
its output files through the NumRecs, TimeIntoInterval, and Interval
parameters.
• Faster compile times when small file sizes are specified.
206