1 tablefile() with option 64, 2 tablefile() with option 64 replaces cardout(), 3 tablefile() with option 64 programming – Campbell Scientific CR3000 Micrologger User Manual
Page 274

Section 7. Installation
274
7.8.20.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. CF cards up to 16 GB are
supported. TableFile() with
Option 64
, TOB3 is now available in CR3000
operating systems 25 or greater. 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
1
.
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
2
for a
detailed description of each parameter.
Note The CRD: drive (the drive designation for the optional CF card) is the only
drive that is allowed for use with
Option 64
.
Note Larger cards are primarily intended for storing high-frequency data in
applications wherein storage cards are changed out frequently. Large cards may
also be used in applications where the site cannot be accessed for extended
periods. However, large CF cards do not eliminate the risk of data loss.
1
The CRD: drive is a memory drive created when a CF card is connected to the
datalogger through the appropriate peripheral device. The CR3000 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.
2
CRBasic Editor is included in Campbell Scientific datalogger support software
suites LoggerNet, PC400, and RTDAQ.
7.8.20.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.
• Easy retrieval of closed files via File Control (p. 456) utility, FTP, or E-mail.
7.8.20.3 TableFile() with Option 64 Programming
As shown in the following CRBasic code segment, the TableFile() instruction
must be placed inside a DataTable() / EndTable declaration. The TableFile()
instruction writes data to the CF card based on user-specified parameters that
determine the file size based on number of records to store, or an interval over
which to store data. The resulting file is saved with a suffix of X.dat, where X is a
number that is incremented each time a new file is written.