Specifications
Section 9. CR1000 Programming
9-20
other sequences have access to measurement hardware with the order of
priority being the background calibration sequence followed by the slow
sequences in the order they are declared in the program.
Measurement tasks have priority over other tasks such as
processing and communication to allow accurate timing needed
within most measurement instructions.
9.12 Instructions
In addition to BASIC syntax, additional instructions are included in CRBASIC
to facilitate measurements and store data. Section 10 contains a comprehensive
list o
f these instructions.
9.12.1 Measurement and Data Storage Processing
CRBASIC instructions have been created for making measurements and
storing data. Measurement instructions set up CR1000 hardware to make
measurements and store results in variables. Data storage instructions process
measurements into averages, maxima, minima, standard deviation, FFT, etc.
Each instruction is a keyword followed by a series of informational parameters
needed to complete the procedure. For example, the instruction for measuring
CR1000 panel temperature is:
PanelTemp (Dest, Integ)
“PanelTemp” is the keyword. Two parameters follow: Dest, a destination
variable name in which the temperature value is stored; and Integ, a length of
time to integrate the measurement. To place the panel temperature
measurement in the variable RefTemp, using a 250 microsecond integration
time, the syntax is:
EXAMPLE 9.12-1. CRBASIC Code: Measurement Instruction Syntax
PanelTemp(RefTemp, 250)
9.12.2 Parameter Types
Many instructions have parameters that allow different types of inputs.
Common input type prompts are listed below. Allowed input types are
specifically identified in the description of each instruction in CRBASIC Editor
Help.
Constant, or Expression that evaluates as a constant
Variable
Variable or Array
Constant, Variable, or Expression
Constant, Variable, Array, or Expression
Name
Name or list of Names
Variable, or Expression
Variable, Array, or Expression
NOTE