EasyManua.ls Logo

Campbell CR800 Series - Page 184

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
Loading...
Section 7. Installation
184
Mathematical
Logical
Examples include:
Process a variable array without use of For/Next
Create boolean arrays based on comparisons with another array or a
scalar variable
Copy a dimension to a new location
Perform logical operations for each element in a dimension using scalar
or similarly located elements in different arrays and dimensions
Note Array-assigned expression notation is an alternative to For/Next
instructions that can be used by advanced programmers. It will probably
not reduce processing time significantly over the use of For/Next. To
reduce processing time, consider using the Move() instruction, which
requires even more intensive programming.
Syntax rules:
Definitions:
o Least-significant dimension the last or right-most figure in an
array index. For example, in the array array(a,b), b is the least-
significant dimension index. In the array array(a,b,c), c is least
significant.
o Negate place a negative or minus sign (-) before the array index.
For example, when negating the least-significant dimension in
array(a,b,c), the notion is array(a,b,-c)
An empty set of parentheses designates an array-assigned expression.
For example, reference array() or array(a,b,c)().
Only one dimension of the array is operated on at a time.
To select the dimension to be operated on, negate the dimension of index
of interest.
Operations will not cross dimensions. An operation begins at the
specified starting point and continues to one of the following:
o End of the dimension
o Where the dimension is specified by a negative
o Where the dimension is the least significant (default)

Table of Contents

Related product manuals