Campbell Scientific CR200/CR200X-series Dataloggers User Manual
Page 137

Section 11. Programming Resource Library
Resources Laboratory, NOAA, Idaho Falls, ID; and MERDI, Butte, MT. In
these tests, the maximum differences in
and
have never been greater than a few degrees.
The final form is arrived at by converting from radians to degrees (57.296
degrees/radian).
11.6 TrigVar and DisableVar - Controlling Data
Output and Output Processing
TrigVar is the third parameter in the DataTable () instruction. It controls
whether or not a data record is written to final storage. TrigVar control is subject
to other conditional instructions such as the DataInterval () instruction.
DisableVar is the last parameter in most output processing instructions, such as
Average (), Maximum (), Minimum (), etc. It controls whether or not a
particular measurement or value is included in the affected output processing
function.
Note Together, TrigVar and DataInterval () grant functionality similar to Flag 0
in earlier generation CSI mixed-array dataloggers, such as the CR10X.
DisableVar grants functionality similar to Flag 9.
For individual measurements to affect summary data, output processing
instructions such as Average () must be executed whenever the DataTable is
called from the program - normally once each Scan. For example, for an average
to be calculated for the hour, each measurement must be added to a total over
the hour. This accumulation of data are not affected by TrigVar. TrigVar only
controls the moment when the final calculation is performed and the processed
data (the average) is written to the data table. For this summary moment to
occur, TrigVar and all other conditions (i.e. DataInterval) must be true. To
restate, when TrigVar is false, output processing instructions (e.g. Average ())
perform intermediate processing but not their final processing, and a new record
will not be created.
Note In many applications, output records are solely interval based and TrigVar
is set to TRUE (-1) always. In these applications DataInterval () is the sole
specifier of the output trigger condition.
125