Section 7. Installation
'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,mV2_5C,1,TypeT,PTemp_C,True,0,_60Hz,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
section,
Output Processing Instructions
(p. 145)
).
Read More
Section
,
TrigVar and DisableVar — Controlling Data Output and
Output Processing
(p. 195)
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
CR1000 sizes all tables such that they fill (and begin overwriting the oldest
data) at about the same time. Approximately 2 kB of extra data-table space
are allocated to minimize the possibility of new data overwriting the oldest
data in ring memory when
datalogger support software
(p. 654)
collects the
oldest data at the same time new data are written. These extra records are not
reported in the
Status
table and are not reported to the support software and
so are not collected.
143
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......