Section 9. Program Control Instructions
9-7
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.
Read
s
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 CR9000 clock from the values in an array. The most likely use for
this is where the CR9000 can input the time from a more accurate clock than
its own (e.g., a GPS receiver). The input time would periodically or
conditionally be converted into the required variable array and ClockSet would
be used to set the CR9000 clock.
Source
Array
The source must be a seven element array .
array
(1)..
array
(7) should hold respectively year,
month, day, hours, minutes, seconds, and microseconds.
.
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...