Specifications
Section 4. CRBasic - Native Language Programming
4-12
TABLE 4.8-1. Rules for Names
Name for Maximum Length (number of
characters)
Allowed characters
Variable or Array 16 Letters A-Z, upper or lower.
Constant 16 case, underscore “_”, and
Alias 16 numbers 0-9. The name must
Data Table Name 8 start with a letter. CRBasic is
Field name 16 not case sensitive
4.8.1 Expressions in Parameters
Many parameters allow the entry of expressions. If an expression is a
comparison, it will return -1 if the comparison is true and 0 if it is false
(Section 4.6.3). An example of the use of this is in the DataTable instruction
where the trigger condition can be entered as an expression. Suppose the
variable TC(1) is a thermocouple temperature:
' DataTable(Name, TrigVar, Size)
DataTable(Temp, TC(1)>100, 5000)
Entering the trigger as the expression, TC(1)>100, will cause the trigger to be
true and data to be stored whenever the temperature TC(1) is greater than 100.
4.8.2 Arrays of Multipliers and Offsets for Sensor Calibration
If variable arrays are used as the multiplier and offset parameters in
measurements that use repetitions, the instruction will automatically step
through the multiplier and offset arrays as it steps through the channels. This
allows a single measurement instruction to measure a series of individually
calibrated sensors, applying the correct calibration to each sensor. If the
multiplier and offset are not arrays, the same multiplier and offset are used for
each repetition.