Section 7. Installation
204
DataTable
(Table1,True,-1)
DataInterval
(0,1440,Min,0)
'Optional instruction to trigger table at 24-hour interval
Minimum
(1,Batt_Volt,FP2,False,False)
'Optional instruction to determine minimum Batt_Volt
EndTable
'Main Program
BeginProg
Scan
(5,Sec,1,0)
'Default Datalogger Battery Voltage measurement Batt_Volt:
Battery
(Batt_Volt)
'Wiring Panel Temperature measurement PTemp_C:
PanelTemp
(PTemp_C,_60Hz)
'Type T (copper-constantan) Thermocouple measurements Temp_C:
TCDiff
(Temp_C(),2,mV200C,U1,TypeT,PTemp_C,True,0,60,1,0)
'Call Data Tables and Store Data
CallTable
(OneMin)
CallTable
(Table1)
NextScan
EndProg
DataTable() / EndTable Instructions
The
DataTable()
instruction has three parameters: a user-specified alphanumeric
name for the table such as
OneMin
, a trigger condition (for example,
True
), and
the size to make the table in memory such as
-1
(automatic allocation).
•
Name
— The table name can be any combination of numbers, letters,
and underscore up to 20 characters in length. The first character must be
a letter or underscore.
Note
While other characters may pass the precompiler and compiler,
runtime errors may occur if these naming rules are not adhered to.
•
TrigVar
— Controls whether or not data records are written to storage.
Data records are written to storage if
TrigVar
is true and if other
conditions, such as
DataInterval()
, are met. Default setting is
-1
(
True
).
TrigVar
may be a variable, expression, or constant.
TrigVar
does not
control intermediate processing. Intermediate processing is controlled by
the disable variable,
DisableVar
, which is a parameter in all output
processing instructions. See
Data Output: Processing Instructions
(p. 207).
Read More
Data Output: Triggers and Omitting Samples
(p. 253)
discusses the use of
TrigVar
and
DisableVar
in special applications.
•
Size
— Table size is the number of records to store in a table before new
data begins overwriting old data. If
10
is entered, 10 records are stored in
the table; the eleventh record will overwrite the first record. If
–1
is
entered, memory for the table is allocated automatically at the time the
program compiles. Automatic allocation is preferred in most
applications since the CR6 sizes all tables such that they fill (and begin
Summary of Contents for CR6 Series
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 76: ...Section 5 Overview 76 FIGURE 20 Half Bridge Wiring Example Wind Vane Potentiometer ...
Page 80: ...Section 5 Overview 80 FIGURE 23 Pulse Input Wiring Example Anemometer ...
Page 136: ......
Page 454: ...Section 8 Operation 454 FIGURE 104 Narrow Sweep High Noise ...
Page 459: ...Section 8 Operation 459 FIGURE 106 Vibrating Wire Sensor Calibration Report ...
Page 535: ...Section 8 Operation 535 8 11 2 Data Display FIGURE 121 CR1000KD Displaying Data ...
Page 537: ...Section 8 Operation 537 FIGURE 123 CR1000KD Real Time Custom ...
Page 538: ...Section 8 Operation 538 8 11 2 3 Final Storage Data FIGURE 124 CR1000KD Final Storage Data ...
Page 539: ...Section 8 Operation 539 8 11 3 Run Stop Program FIGURE 125 CR1000KD Run Stop Program ...
Page 541: ...Section 8 Operation 541 FIGURE 127 CR1000KD File Edit ...
Page 546: ......
Page 552: ......
Page 610: ...Section 11 Glossary 610 FIGURE 137 Relationships of Accuracy Precision and Resolution ...
Page 612: ......
Page 648: ......
Page 650: ......
Page 688: ......
Page 689: ......