Data, read, restore, Clockset (source) – Campbell Scientific CR5000 Measurement and Control Module User Manual
Page 209

Section 9. Program Control Instructions
9-3
DataTable is called, it will process data as programmed and check the output
condition.
CallTable Example
This example uses CallTable to call the ACCEL table.
CallTable ACCEL
Data, Read, Restore
Used to mark the beginning of a data list.
Syntax
Data list of constants
Read [VarExpr]
Restore
Remarks
Data function: A list of floating point constants that can be read (using Read)
into an Array Variable.
Parameter: A list of floating point constants.
Reads Data from Data declaration into an array. Subsequent Read picks up
where current Read leaves off.
Parameter: Variable destination.
Restore pointer to Data to beginning. Used in conjunction with Data and
Read.
Data Statement Example
This example uses Data to hold the data values and Read to transfer the values
to variables.
Data 1, 2, 3, 4, 5
'data for x
Data 6, 7, 8, 9, 10
'data for y
For I = 1 To 5
Read x( I )
Next I
For I = 1 To 5
Read y( I )
Next I
This next example uses Restore to read 1, 2, 3, 4 into both X( ) and Y( )
variables.
Data 1, 2, 3, 4
For I = 1 To 4
Read X( I )
Next I
Restore
For I = 1 To 4
Read Y( I )
Next I
ClockSet
(Source)
Sets the CR5000 clock from the values in an array. The most likely use for
this is where the CR5000 can input the time from a more accurate clock than