beautypg.com

Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 185

background image

Section 8. Processing and Math Instructions

8-13

Parameter
& Data Type

Enter

TintoInt
constant

The time into interval sets an offset from the datalogger’s clock to the
interval at which the IfTime will be true. For example, if the Interval is set at
60 minutes, and TintoInt is set to 5, IfTime will be True at 5 minutes into the
hour, every hour, based on the datalogger's real-time clock. If the TintoInt is
set to 0, the IfTime statement is True at the top of the hour.

Interval
constant

The Interval is how often IfTime will be True.

Units

The time units for TintoInt and Interval

Constant

Alpha Code

Numeric Code

Units

Usec

0

microseconds

Msec

1

milliseconds

Sec

2

seconds

Min

3

minutes

Hr

4

hours

Day

5

days

IIF

The IIF function evaluates a variable or expression and returns one of two
results based on the outcome of that evaluation.

Syntax

Result = IIF(Expression, TrueValue, FalseValue)

Parameter
& Data Type

Enter

Expression

The Variable or expression to test.

Expression or

Value

Result

Variable

0

True: return TrueValue

0

False: return FalseValue

TrueValue
Constant
Variable or
Expression

The Value (or expression determining the value) to return if the test condition is true

FalseValue
Constant
Variable or
Expression

The Value (or expression determining the value) to return if the test condition is
False

IMP

The IMP function is used to perform a logical implication on two expressions.

Syntax
result = expression1 IMP expression2

Remarks
The following table illustrates how Result is determined: