04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

PanelTemp is the keyword. Two parameters follow: Dest, a destination variable<br />

name in which the temperature value is stored; and Integ, a length of time to<br />

integrate the measurement. To place the panel temperature measurement in the<br />

variable RefTemp, using a 250-µs integration time, the syntax is as shown in<br />

CRBasic example Measurement Instruction Syntax (p. 140).<br />

CRBasic Example 17.<br />

PanelTemp(RefTemp, 250)<br />

7.7.3.8.2 Argument Types<br />

7.7.3.8.3 Names in Arguments<br />

Measurement Instruction Syntax<br />

Most CRBasic commands or instructions, have sub commands or parameters.<br />

Parameters are populated by the programmer with arguments. Many instructions<br />

have parameters that allow different types of arguments. Common argument types<br />

are listed below. Allowed argument types are specifically identified in the<br />

description of each instruction in CRBasic Editor Help.<br />

• Constant, or Expression that evaluates as a constant<br />

• Variable<br />

• Variable or Array<br />

• Constant, Variable, or Expression<br />

• Constant, Variable, Array, or Expression<br />

• Name<br />

• Name or list of Names<br />

• Variable, or Expression<br />

• Variable, Array, or Expression<br />

Table Rules for Names (p. 140) lists the maximum length and allowed characters for<br />

the names for variables, arrays, constants, etc. The CRBasic Editor pre-compiler<br />

will identify names that are too long or improperly formatted.<br />

Caution Concerning characters allowed in names, characters not listed in in the<br />

table, Rules for Names, may appear to be supported in a specific operating system.<br />

However, they may not be supported in future operating systems.<br />

Table 18. Rules for Names<br />

Name<br />

Category 1<br />

Maximum Length<br />

(number of<br />

characters)<br />

Allowed characters<br />

Variable or array 39<br />

Constant 38<br />

Units 38<br />

Alias 39<br />

Station name 64<br />

Letters A to Z, a to z, _ (underscore), and<br />

numbers 0 to 9. Names must start with a letter<br />

or underscore. CRBasic is not case sensitive.<br />

Units are excepted from the above rules. Since<br />

units are strings that ride along with the data,<br />

they are not subjected to the stringent syntax<br />

checking that is applied to subroutines, tables,<br />

140

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

Saved successfully!

Ooh no, something went wrong!