beautypg.com

36 x * y, 37 x * f, 38 x / y – Campbell Scientific CR23X Micrologger User Manual

Page 166: 39 square root, 40 ln(x), 41 exp(x), 42 1/x

background image

SECTION 10. PROCESSING INSTRUCTIONS

10-2

*** 36 X * Y ***

FUNCTION
Multiply X by Y and place the result in an input
location (Z).

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Input location of Y

[Y]

03:

4

Dest. input location for
X*Y

[Z]

Input locations altered:

1

*** 37 X * F ***

FUNCTION
Multiply X by F (where F is a fixed multiplier)
and place the result in an input location.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

FP

Fixed value

[F]

03:

4

Dest. input location for
X*F

[Z]

Input locations altered:

1

*** 38 X / Y ***

FUNCTION
Divide X by Y and place the result in an input
location. Division by 0 will cause the result to be
set to the maximum CR23X number (99999).

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Input location of Y

[Y]

03:

4

Dest. input location for
X/Y

[Z]

Input locations altered:

1

*** 39 SQUARE ROOT ***

FUNCTION
Take the square root of X and place the result
in an input location. If X is negative, 0 will be
stored as the result.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for
X

1/2

[Z]

Input locations altered:

1

*** 40 LN(X) ***

FUNCTION
Take the natural logarithm of X and place the
result in an input location. If X is 0 or negative,
-99999 will be stored as the result.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for
LN(X)

[Z]

Input locations altered:

1

*** 41 EXP(X) ***

FUNCTION
Raise the exponential (EXP) base e to the X
power and place it in an input location.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input for EXP(X)

[Z]

Input locations altered:

1

*** 42 1/X ***

FUNCTION
Take the inverse of X and place the result in an
input location. If X=0, 99999 will be given as
the result.

PARAM.

DATA

NUMBER

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for
1/X

[Z]

Input locations altered:

1