04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

Table 18. Rules for Names<br />

Name<br />

Category 1<br />

Maximum Length<br />

(number of<br />

characters)<br />

Data-table name 20<br />

Allowed characters<br />

and other names.<br />

Field name 39<br />

Field-name<br />

description<br />

64<br />

1 Variables, constants, units, aliases, station names, field names, data table names, and file names<br />

can share identical names; that is, once a name is used, it is reserved only in that category.<br />

7.7.3.8.4 Expressions in Arguments<br />

Read More! See Expressions (p. 142) for more information on expressions.<br />

Many parameters allow the entry of arguments as expressions. If an expression is<br />

a comparison, it will return -1 if the comparison is true and 0 if it is false (Logical<br />

Expressions (p. 145) ). CRBasic example Use of Expressions in Parameters (p. 141)<br />

shows an example of the use of expressions in arguments in the DataTable()<br />

instruction, where the trigger condition is entered as an expression. Suppose the<br />

variable TC is a thermocouple temperature:<br />

CRBasic Example 18.<br />

'DataTable(Name, TrigVar, Size)<br />

DataTable(Temp, TC > 100, 5000)<br />

Use of Expressions in Arguments<br />

7.7.3.8.5 Arrays of Multipliers and Offsets<br />

When the trigger is "TC > 100", a TC temperature > 100 will set the trigger to<br />

true and data are stored.<br />

A single measurement instruction can measure a series of sensors and apply<br />

individual calibration factors to each sensor as shown in CRBasic example Use of<br />

Arrays as Multipliers and Offsets (p. 142). Storing calibration factors in variable<br />

arrays, and placing the array variables in the multiplier and offset parameters of<br />

the measurement instruction, makes this possible. The measurement instruction<br />

uses repetitions to implement this feature by stepping through the multiplier and<br />

offset arrays as it steps through the measurement input channels. If the multiplier<br />

and offset are not arrays, the same multiplier and offset are used for each<br />

repetition.<br />

Read More! More information is available in CRBasic Editor Help topic<br />

"Multipliers and Offsets with Repetitions".<br />

141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!