Appendix d. expression errors, D.1 error codes and messages, D.1.1 causes – Campbell Scientific PC208 Datalogger Support Software User Manual

Page 121: D.1.1.1 variable name expected, D.1.1.2 equal sign expected, D.1.1.3 floating point numbers limited to 5 digits, D.1.1.4 number expected, D.1.1.5 new line expected

Advertising
background image

D-1

APPENDIX D. EXPRESSION ERRORS

D.1 ERROR CODES AND MESSAGES

The following error codes and messages may
occur when using expressions.

Code Error Message

100

Missing left parenthesis

101

Missing right parenthesis

102

Variable name expected

103

Number expected

104

Floating point numbers limited to 5 digits

107

Function Expected

110

New line expected

111

Equal sign expected

D.1.1 CAUSES

D.1.1.1 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).

D.1.1.2 Equal sign expected

An equal sign MUST immediately follow the
label of the input location that stores the results
(e.g., label = expression). An expression that
contains no equal sign causes compiler error
202, 'unrecognized text'.

For Example:

'Equal sign expected' is displayed when a
program contains any of these expressions:
zee/2=bee, data+number=volt1+volt2.

These are correct ways of entering the above
expressions: bee=zee/2, data=volt1+volt2-
number.

D.1.1.3 Floating point numbers limited to 5
digits

All fixed numbers are limited to five digits not
including negative signs and decimal points.

D.1.1.4 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.

(3) An expression with an @ operator does not

have a number after the @; only a fixed
number is allowed immediately after the @
operator.

(4) An expression with an @ operator does not

have either a number or label before the @.

(5) There is nothing between a pair of

parentheses (e.g., the expression contains
this "()").

(6) A number is immediately followed by a label

or function without an operator (e.g., an
expression containing '8label' gets this error
message).

D.1.1.5 New line expected

Indicates one of the following situations:

(1) An expression contains more than one

equal sign.

(2) There is no operator between two sets of

parentheses.

Advertising