beautypg.com

2 entering parameters, 3 data entry warning, 3 expressions – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 36: 1 rules for creating expressions, 2 operator and function lists

background image

SECTION 2. EDLOG

2-4

2.3.2.2 Entering Parameters

When an instruction's template appears, the
cursor is automatically located where the first
parameter is entered. Type-in the first
parameter's value then press and the
cursor automatically moves to the next
parameter. Repeat the process until all of the
parameters have been entered.

Note: Because the instructions and their
parameters are datalogger specific, individual
instructions are listed and described in the
datalogger manuals and the help windows.

2.3.2.3 Data Entry Warning

When the Data Entry Warning is active, a
warning is displayed immediately after an invalid
input has been entered for an instruction's
parameter. The warning lists the valid inputs. A
valid input must be entered before advancing to
the next parameter.

By default, the Data Entry Warning is enabled.
To disable the Data Entry Warning, select
OPTION | EDITOR OPTIONS. Use the
key to place the cursor on the brackets and
press the bar or select the brackets
with the computer's mouse. A space instead of
an 'X' between the brackets indicates this option
is disabled.

2.3.3 EXPRESSIONS

Expressions are a shortcut for processing
numbers and input data. When a datalogger
program that contains an expression is
compiled, the appropriate instructions are
automatically incorporated into the .DLD file.

2.3.3.1 Rules for Creating Expressions

Expressions must be set equal to the label
of the input location that will store the result.
The label must be to the left of the
expression. See Section 2.5 for more
information about input location labels.

Expressions can have both fixed numbers
and input location labels. Input locations
can ONLY be referenced by their label;
each number is always assumed to be a
constant.

Floating point numbers are limited to five
digits plus the decimal point and sign.

The operator(s) and/or function(s) used in
the expression must be on the operator or
function list (see Section 2.3.3.2).

Numbers and labels that are immediately
after a function must be enclosed in
parentheses.

Several operators and/or functions can be
used in one expression. Operations and
functions that are enclosed in parentheses
are calculated first; the inner most
parentheses are evaluated first.

To continue an expression to the next line,
end the first line with an '_'.

2.3.3.2 Operator and Function Lists

Operator List

*

(multiply)

/

(divide)

+

(add)

-

(subtract)

^

(raise to the power of; enclose negative
values in parentheses)

@ (modulo divide)

e

(for CR10(X) only, scientific notation; 6e-

1=0.6)

Function List

COS

(cosine; angle in degrees)

SIN

(sine; angle in degrees)

TAN

(tangent; angle in degrees)

COTAN

(cotangent; angle in degrees)

ARCTAN

(arctangent; angle in degrees)

ARCSIN

(arcsine; angle in degrees)

ARCCOS

(arccosine; angle in degrees)

ARCCOT

(arccotangent; angle in degrees)

SQRT

(square root)