2 argument types, 3 names in arguments, Table 18. rules for names – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 140: Crbasic example 17. measurement instruction syntax

Advertising
background image

Section 7. Installation

140 

 

 

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. 140).

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. 140)

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 18. Rules for Names

Name

Category

1

Maximum Length

(number of

characters)


Allowed characters

Variable or array

39

Constant 38

Units 38

Alias 39

Station name

64

Letters A to Z, a to z, _ (underscore), and
numbers 0 to 9. Names must start with a letter
or underscore. CRBasic is not case sensitive.
Units are excepted from the above rules. Since
units are strings that ride along with the data,
they are not subjected to the stringent syntax
checking that is applied to subroutines, tables,

Advertising