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
Содержание CR3000 Micrologger
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 6: ......
Страница 30: ......
Страница 34: ......
Страница 36: ......
Страница 96: ......
Страница 200: ...Section 7 Installation 200 FIGURE 42 Running Average Frequency Response FIGURE 43 Running Average Signal Attenuation ...
Страница 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Страница 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Страница 488: ...Section 8 Operation 488 8 11 2 3 Final Storage Data FIGURE 113 Keyboard and Display Final Storage Data ...
Страница 489: ...Section 8 Operation 489 8 11 3 Run Stop Program FIGURE 114 Keyboard and Display Run Stop Program ...
Страница 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Страница 495: ...Section 8 Operation 495 Low power standby whenever possible Low power bus sets bus and modules to low power ...
Страница 496: ......
Страница 502: ......
Страница 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Страница 566: ......
Страница 594: ......
Страница 598: ......
Страница 600: ......
Страница 602: ......
Страница 624: ......
Страница 642: ......
Страница 643: ......