Section 8. Processing and Math Instructions
8-9
Get Record
Retrieves one record from a data table.
Syntax
GetRecord
( Dest, TableName, RecsBack )
Remarks
The GetRecord instruction retrieves one entire record from a data table. The
destination array must be dimensioned large enough to hold all the fields in the
record.
Parameter
& Data Type
Enter
GetRecord Parameters
Dest
Array
The destination variable array in which to store the fields of the record. The array must be
dimensioned large enough to hold all the fields in the record.
TableName
name
The name of the data table to retrieve the record from.
RecsBack
Const. Or
variable
The number of records back from the most recent record stored to go to retrieve the record (1
record back is the most recent).
GetRecord Example
IfTime
The IfTime instruction is used to return a number indicating True (-1) or False
(0) based on the datalogger's real-time clock.
Syntax
IfTime
(TintoInt, Interval, Units)
The IfTime function returns True (-1) or False (0) based on the scan clock.
Time is kept internally by the datalogger as the elapsed time since January 1,
1990, at 00:00:00 hours. The interval is synchronized with this elapsed time
(i.e., the interval is true when the Interval divides evenly into this elapsed
time). The time into interval allows an offset to the interval. The IfTime
instruction can be used to set the value of a variable or it can be used as an
expression for a condition.
The scan clock that the IfTime function checks has the time resolution of the
scan interval (i.e., it remains fixed for an entire scan and increments for the
next scan). IfTime must be within a scan to function.
The window of time in which the IfTime instruction is true is 1 of its specified
Units
. For example, if IfTime specifies 0 into a 10 minute interval, it could be
true when the scan clock specified any time within the first minute of the ten
minute interval. With 0 into a 600 second interval, the interval is still 10
minutes but it could only be true during the first 1 second of that interval.
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...