Section 7. Creating and Editing Datalogger Programs
7.3.4.12 Flags
Any variable can be used as a flag as far as logical tests in CRBasic are
concerned. If the value of the variable is non-zero the flag is high. If the value
of the variable is 0 the flag is low. LoggerNet, PC400, or RTDAQ looks for
the variable array with the name
Flag
when the option to display flag status is
selected from the Connect Screen. If a Flag array is found, as many elements
of that array which can fit will be displayed in the Port and Flags dialog box.
7.3.4.13 Parameter Types
Instruction parameters allow different types of inputs. These types are listed
below and specifically identified in the description of the parameter in the
following sections or in CRBasic help.
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
TABLE 7-4 lists the maximum length and allowed characters for the names for
Variables, Arrays, Constants, etc.
TABLE 7-4. Rules for Names
Name for
Maximum Length
(number of characters)
Allowed characters
Variable or Array
39 (17 )
Constant
39 (16)
Alias
39 (17 )
Data Table Name
20 (8)
Field name
39 (16)
Letters A-Z, upper or
lower case, underscore
“_”, and numbers
0-12. The name must
start with a letter.
CRBasic is not case
sensitive.
Values in parentheses refer to the CR5000, CR9000 and CR9000X dataloggers.
7.3.4.13.1 Expressions in Parameters
Many parameters allow the entry of expressions. If an expression is a
comparison, it will return -1 if the comparison is true and 0 if it is false. An
example of the use of this is in the DataTable instruction where the trigger
condition can be entered as an expression. Suppose the variable TC(1) is a
thermocouple temperature:
7-49
Содержание LoggerNet
Страница 2: ......
Страница 30: ...Preface What s New in LoggerNet 4 xxvi...
Страница 32: ...Section 1 System Requirements 1 2...
Страница 44: ...Section 2 Installation Operation and Backup Procedures 2 12...
Страница 136: ...Section 4 Setting up Datalogger Networks 4 80...
Страница 227: ...Section 7 Creating and Editing Datalogger Programs 7 9...
Страница 298: ...Section 7 Creating and Editing Datalogger Programs 7 80...
Страница 402: ...Section 9 Automating Tasks with Task Master 9 12...
Страница 406: ...Section 9 Automating Tasks with Task Master 9 16...
Страница 450: ...Section 11 Utilities Installed with LoggerNet Admin and LoggerNet Remote 11 22...
Страница 454: ...Section 12 Optional Client Applications Available for LoggerNet 12 4...
Страница 462: ...Section 13 Implementing Advanced Communications Links 13 8...
Страница 482: ...Section 14 Troubleshooting Guide 14 20...
Страница 570: ...Appendix F Calibration and Zeroing F 16...
Страница 578: ...Appendix G Importing Files into Excel G 8...
Страница 579: ......