EasyManuals Logo

Campbell CR800 Series User Manual

Campbell CR800 Series
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #136 background imageLoading...
Page #136 background image
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).

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Campbell CR800 Series and is the answer not in the manual?

Campbell CR800 Series Specifications

General IconGeneral
BrandCampbell
ModelCR800 Series
CategoryData Loggers
LanguageEnglish

Related product manuals