Specifications

Section 11. Programming Resource Library
11-34
'Main Scan.
Scan (ScanRate,Sec,0,0)
'Here we make a measurement using different parameters and a different
'SE channel depending on the logger type the program is running in.
#If LoggerType = CR3000
VoltSe(ValueRead,1,mV1000,22,0,0,_50Hz,0.1,-30) 'This instruction is used if the logger is a CR3000
#ElseIf LoggerType = CR1000
VoltSe(ValueRead,1,mV2500,12,0,0,_50Hz,0.1,-30) 'This instruction is used if the logger is a CR1000
#ElseIf LoggerType = CR800
VoltSe(ValueRead,1,mV2500,3,0,0,_50Hz,0.1,-30) This instruction is used if the logger is a CR800 Series
#Else
ValueRead = NaN
#EndIf
NextScan
EndProg
11.8 Serial Input
This section is not yet available.
11.9 Callback
This section is not yet available.
11.10 TrigVar and Output Trigger Conditions
TrigVar is the third parameter in the DataTable() instruction.
TrigVar triggers Output Processing Instructions to store data to a data table
memory. TrigVar may or may not act alone. Other output trigger conditions
can be added using DataInterval() and DataEvent() instructions.
Flashback! Together, TrigVar and DataInterval grant functionality similar to
Flag 0 in the earlier generation mixed-array dataloggers.
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 is 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 and
DataEvent) 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.
Take Away: In many applications, output records are solely interval based and
TrigVar is set to TRUE always. In these applications DataInterval() is the sole
specifier of the output trigger condition.