beautypg.com

6 processing and math instructions, 1 mathematical operators, 2 logical operators – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 112

background image

Section 10. CRBASIC Programming Instructions

SDI12SensorResponse

Holds the source of the data to send to the SDI12 recorder.

Syntax

SDI12SensorSetup (Repetitions, SDIPort, SDIAddress,

ResponseTime)

SDI12SensorResponse (SDI12Source)

10.6 Processing and Math Instructions

10.6.1 Mathematical Operators

^ Raise to Power.

* Multiply

/ Divide

+ Add

- Subtract

= Equals

<> Not Equal

> Greater Than

< Less Than

>= Greater Than or Equal

<= Less Than or Equal

10.6.2 Logical Operators

AND

Used to perform a logical conjunction on two expressions.

Syntax

result = expr1 AND expr2

IIF

Evaluates a variable or expression and returns one of two results based on the

outcome of that evaluation.

Syntax

Result = IIF (Expression, TrueValue, FalseValue)

NOT

Performs a logical negation on an expression.

Syntax

result = NOT expression

100