Campbell Scientific CR3000 CR3000 Micrologger - Page 145
Argument Types, 7.3.8.3 Names in Arguments
View all Campbell Scientific CR3000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 145 highlights
Section 7. Installation 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-µs integration time, the syntax is as shown in CRBasic example Measurement Instruction Syntax (p. 145). CRBasic Example 17. Measurement Instruction Syntax PanelTemp(RefTemp, 250) 7.7.3.8.2 Argument Types Most CRBasic commands or instructions, have sub commands or parameters. Parameters are populated by the programmer with arguments. Many instructions have parameters that allow different types of arguments. Common argument types are listed below. Allowed argument 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 7.7.3.8.3 Names in Arguments Table Rules for Names (p. 145) lists the maximum length and allowed characters for the names for variables, arrays, constants, etc. The CRBasic Editor pre-compiler will identify names that are too long or improperly formatted. Caution Concerning characters allowed in names, characters not listed in in the table, Rules for Names, may appear to be supported in a specific operating system. However, they may not be supported in future operating systems. Table 20. Rules for Names Name Category1 Maximum Length (number of characters) Allowed characters Variable or array Constant Units Alias Station name 39 Letters A to Z, a to z, _ (underscore), and numbers 0 to 9. Names must start with a letter 38 or underscore. CRBasic is not case sensitive. 38 Units are excepted from the above rules. Since units are strings that ride along with the data, 39 they are not subjected to the stringent syntax checking that is applied to subroutines, tables, 64 145