![Campbell CR9000 Instruction Manual Download Page 170](http://html1.mh-extra.com/html/campbell/cr9000/cr9000_instruction-manual_489197170.webp)
Section 8. Processing and Math Instructions
8-10
IfTime will only return true once per interval. For example, a program with a
1 second scan that tests IfTime(0,10, min) -- 0 minutes into a 10 minute
interval – each scan will execute the instruction 60 times during the minute that
it could be true. It will only return true the first time that it is executed, it will
not return true again until another interval has elapsed.
Parameter
& Data Type
Enter
IfTime Parameters
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
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
IIf Parameters
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
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...