![Campbell CR800 Series Скачать руководство пользователя страница 136](http://html1.mh-extra.com/html/campbell/cr800-series/cr800-series_operators-manual_489099136.webp)
Section 7. Installation
136
•
perform a mathematical or logical operation for each element in a
dimension using scalar or similarly located elements in different arrays
and dimensions
Here are some syntax rules and behaviors. Given the array, Array(A,B,C):
•
The () pair must always be present, i.e., reference the array as Array() or
Array(A,B,C)().
•
Only 1 dimension of the array can be operated on at a time. To select the
dimension, negate the element index.
•
Operations will not cross from 1 dimension into another. We access
from the specified starting point to the end of the dimension, where the
dimension is specified by a negative or by default is the least significant.
•
If indices are not specified, or none have been negated, the least
significant dimension of the array will be assumed.
•
The offset into the dimension being accessed is given by A,B, and C in
Array(A,B,C)().
•
If the Array is referenced as Array(), then the starting point is assumed
Array(1,1,1) and the least significant dimensioned is accessed.
7.6.3.6 Declaring Local and Global Variables
Advanced programs may use
subroutines
(p. 307)
or functions, each of which can
have a set of
Dim
variables dedicated to that subroutine or function. These are
called
local
variables. Names of local variable can be identical to names of
global variables
(p. 500)
and to names of local variables declared in other
subroutines and functions. This feature allows creation of a CRBasic library of
reusable subroutines and functions that will not cause variable name conflicts. If
a program with local
Dim
variables attempts to use them globally, the compile
error
undeclared variable
will occur.
To make a local variable displayable, in cases where making it public creates a
naming conflict, sample the local variable to a data table and display the data
element table in a
numeric monitor
(p. 506).
When exchanging the contents of a global and local variables, declare each
passing / receiving pair with identical data types and string lengths.
7.6.3.7 Initializing Variables
By default, variables are set equal to zero at the time the datalogger program
compiles. Variables can be initialized to non-zero values in the declaration.
Examples of syntax are shown in CRBasic example
Initializing Variables
(p. 136).
Содержание CR800 Series
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 34: ......
Страница 54: ......
Страница 92: ......
Страница 190: ...Section 7 Installation 190 FIGURE 40 Running Average Frequency Response FIGURE 41 Running Average Signal Attenuation ...
Страница 310: ......
Страница 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Страница 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Страница 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Страница 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Страница 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Страница 456: ......
Страница 462: ......
Страница 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Страница 524: ......
Страница 526: ......
Страница 556: ......
Страница 558: ......
Страница 560: ......
Страница 597: ......