Campbell Scientific PC400 Datalogger Support Software User Manual

Page 146

Advertising
background image

Section 8. Datalogger Program Creation with Edlog

5: Z=F (P30)
1: 32
2: 0
3: 3

6: Z=X+Y (P33)
1: 3
2: 5
3: 6

Errors That Can Occur With Expressions

Some of the error messages that occur when using expressions need no further
explanation:

Missing left parenthesis
Missing right parenthesis
Variable name expected
Number expected
Floating point numbers limited to 5 digits
Function expected
New line expected
Equal sign expected

Other errors are explained below.

Variable Name Expected

This message occurs when the expression is not set equal to an Input Location
label. The label must be to the left of the expression and not enclosed in
parentheses. An expression that contains no equal sign causes compiler error
202, “unrecognized text”.

For Example:

“Variable name expected” is displayed when a program contains any of these
expressions:

5=el*(Vee+en)

(lambda) = COS(theta)

10-(zee/2)=bee

These are correct ways of entering the above expressions:

five=el*(Vee+en)

lambda = COS(theta)

bee=10-(zee/2)

Number Expected

Indicates one of the following situations:

(1) An expression with a /, *, or ^ operator is missing a number or label

before and/or after the operator.

(2) An expression with a + or - operator does not have a number or label after

the operator.

8-10

Advertising