Campbell Scientific CR7 Measurement and Control System User Manual

Page 106

Advertising
background image

SECTION 10. PROCESSING INSTRUCTIONS

10-4

Parameter 3 cannot be entered as an indexed
location within a loop (Instruction 87). To use
Instruction 49 within a loop, enter Parameter 3
as a fixed location and follow 49 with Instruction
31 (Move Data). In Instruction 31, enter the
location in which 49 stores its result as the
source (fixed) and enter the destination as an
indexed location.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

2

Swath

[SWATH]

02:

4

Starting input location [1ST LOC]

03:

4

Dest. input location for maximum

[MAX or Z]

Input locations altered: 1 or 2

*** 50 SPATIAL MINIMUM ***

FUNCTION
Find the minimum value in the given set or
SWATH of contiguous input locations and place
the result in location Z. To find the input
location where the minimum value occurs,
follow the instructions given above for SPATIAL
MAXIMUM.

Parameter 3 cannot be entered as an indexed
location in a loop. Within a loop, Instruction 50
must be used in conjunction with Instruction 31
as described for Instruction 49.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

2

Swath

[SWATH]

02:

4

Starting input location [1ST LOC]

03:

4

Dest. input location for minimum

[MIN or Z]

Input locations altered: 1 or 2

*** 51 SPATIAL AVERAGE ***

FUNCTION
Calculate the average of the values in the given
set or SWATH of contiguous input locations and
place the result in location Z.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

2

Swath

[SWATH]

02:

4

Starting input location [1ST LOC]

03:

4

Dest. input location for average

[AVG or Z]

Input locations altered: 1

*** 53 SCALING ARRAY WITH ***

MULTIPLIER AND OFFSET

FUNCTION
Take 4 input location values, multiply each by a
floating point constant, then add another floating
point constant to the resulting products and
place the results back into each of the original 4
input locations.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

First input location

[STRT LOC]

02:

FP

Multiplier 1

[A1]

03:

FP

Offset 1

[B1]

04:

FP

Multiplier 2

[A2]

05:

FP

Offset 2

[B2]

06:

FP

Multiplier 3

[A3]

07:

FP

Offset 3

[B3]

08:

FP

Multiplier 4

[A4]

09:

FP

Offset 4

[B4]

Input locations altered: 4

*** 54 BLOCK MOVE ***

FUNCTION
Moves a block of data from one set of input
locations to another. Parameters specify the
number of values to move, the source, source
step, destination, and destination step. The
"step" parameters designate the increment of
the source and destination Input locations for
each value that is moved. For example, a
"source step" of 2 and a "destination step" of 1
will move data from every other Input location to
a contiguous block of Input locations.

Advertising