Campbell-scientific CR3000 Micrologger Instrukcja Użytkownika Strona 145

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 144
Section 7. Installation
145
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).
CRBasicExample17. MeasurementInstructionSyntax
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
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,
Przeglądanie stron 144
1 2 ... 140 141 142 143 144 145 146 147 148 149 150 ... 589 590

Komentarze do niniejszej Instrukcji

Brak uwag