Reset table, Scan – Campbell Scientific CR5000 Measurement and Control Module User Manual
Page 219

Section 9. Program Control Instructions
9-13
instruction. The Attribute codes are actually a bit field.
The codes are as follows:
Bit
Decimal
Description
bit 1
2
Run on power up
bit 2
4
Run now
RunDLDFile Example
The statement below uses RunDLDFile to run TEMPS.DLD, which is stored
on the datalogger's CPU, when Flag(2) becomes high.
If Flag(2) then RunDLDFile( "CPU:TEMPS.DLD" 4 )
'4 means Run Now
Reset Table
Used to reset a data table under program control.
Syntax
ResetTable( TableName )
Remarks
ResetTable is a function that allows a running program to erase and restart a
data table. TableName is the name of the table to reset.
ResetTable Example
The example program line uses ResetTable to reset table MAIN when Flag(2)
is high.
If Flag(2) then ResetTable( MAIN )
'resets table MAIN
Scan
Used to establish the program scan rate.
Syntax
Scan(Interval, Units, Option, Count)
...
...[Exit Scan]
...
Next Scan
The measurements, processing, and calls to output tables bracketed by the
Scan…NextScan instructions determine the sequence and timing of the
datalogger program.
The Scan instruction determines how frequently the measurements within the
Scan…NextScan structure are made, controls the buffering capabilities, and
sets the number of times to loop through the scan.