5 interval parameter, Data collection modes, Resident mode – Campbell Scientific SC115 CS I/O 2G Flash Memory Drive with USB Interface User Manual

Page 18: 6 units parameter, 7 outstat parameter, 8 lastfilename parameter

Advertising
background image

SC115 CS I/O 2G Flash Memory Drive with USB Interface

10.1.5 Interval Parameter

Data Collection Modes

For data collection modes, the Interval parameter determines what data are
written to the SC115. Set this parameter to 0 to collect only data written to
datalogger memory since it was last connected. Set this parameter to -1 to
collect all of the data stored in the datalogger’s memory. See previous Table 3.

Resident Mode

Resident Mode increases the risk of data corruption. Review
Section 12.1, Preventing Data Corruption before employing a
resident mode.

NOTE

For Resident Mode, the Interval parameter is used to determine how frequently
data are written to the SC115. By setting this parameter to a non-zero number,
the datalogger writes a new file to the SC115 at the interval based on this
number and the Units parameter.

If Interval is set to 0, but NumRecs/TimeIntoInterval is set to a non-zero value,
the datalogger writes data to the SC115 whenever the number of new records
matches the NumRecs/TimeIntoInterval value.

10.1.6 Units Parameter

The Units parameter specifies the units used by the Interval parameter. The
compiler ignores this parameter if the interval parameter is set to 0 or -1.

10.1.7 OutStat Parameter

OutStat is inactive when set to 0.

When set to a variable declared as Public or Dim, OutStat (output status)
indicates whether or not a new data file was stored the last time TableFile()
executed. If a new file is written, -1 is stored in the variable the next time
CallTable() is executed. If a new file is not written, 0 is stored the next time
CallTable() is executed.

TableFile() has been designed to permit the datalogger to continue program
execution while data are baled, by a separate process, into the table file. The
up-side is that TableFile() does not slow program execution. The down-side is
that notification that the TableFile() task is complete is delayed. This situation
is manifest as follows.

If writing a new file takes longer than the CallTable() interval (the interval of
the Scan() / NextScan construct wherein the CallTable() instruction resides),
then the OutStat variable will not be updated. In other words, if the table file is
large, and the scan rate is short, OutStat may not be updated.

10.1.8 LastFileName Parameter

Set to 0 (no last file name) if desired. The LastFileName parameter is a
variable that contains the name of the last file written. LastFileName is
updated the next time CallTable() instruction is executed.

12

Advertising