Section 7. Installation
203
FIGURE 44: Data from TrigVar Program
Using TrigVar to Trigger Data Storage
'This program example demonstrates the use of the TrigVar parameter in the DataTable()
'instruction to trigger data storage. In this example, the variable Counter is
'incremented by 1 at each scan. The data table, which includes the Sample(), Average(), and
'Totalize() instructions, is called every scan. Data are stored when TrigVar is true, and
'TrigVar is True when Counter = 2 or Counter = 3. Data stored are the sample, average,
'and total of the variable Counter, which is equal to 0, 1, 2, 3, or 4 when the data table
'is called.
Public
Counter
DataTable
(Test,Counter=2 or Counter=3,100)
Sample
(1,Counter,FP2)
Average
(1,Counter,FP2,False)
Totalize
(1,Counter,FP2,False)
EndTable
BeginProg
Scan
(1,Sec,0,0)
Counter = C 1
If
Counter = 5
Then
Counter = 0
EndIf
CallTable
Test
NextScan
EndProg
7.7.7 Data Output: Using Data Type Bool8
Variables used exclusively to store either True or False are usually declared As
BOOLEAN. When recorded in final-data memory, the state of Boolean
variables is typically stored in BOOLEAN data type. BOOLEAN data type uses
a four-byte integer format. To conserve final-data memory or comms band, you
can use the BOOL8 data type. A BOOL8 is a one-byte value that holds eight bits
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......