Delay (option, delay, units) – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 210

Advertising
background image

Section 9. Program Control Instructions

9-4

its own (e.g., a GPS receiver). The input time would periodically or
conditionally be converted into the required variable array and ClockSet would
be used to set the CR5000 clock.

Source
Array

The source must be a seven element array . array(1)..array(7) should hold
respectively year, month, day, hours, minutes, seconds, and microseconds..

Delay (Option, Delay, Units)

Used to delay the program.

Syntax
Delay Option
Delay(
Delay, Units)

Remarks
The Delay instruction is used to delay the measurement task sequence or the
processing instructions for the time period specified by the Delay and Units
arguments, before progressing to the next measurement or processing
instruction.

The Scan Interval should be sufficiently long to process all measurements plus
the delay period. If the delay is applied to the measurement task sequence and
the scan interval is not long enough to process all measurements plus the delay,
the program will not compile when downloaded to the datalogger. If the delay
is applied to the processing task sequence, the program will compile but scans
will be skipped.

Parameter
& Data Type

Enter

DelayOption
Constant

Code

0

1

Result

Delay will affect the measurement task sequence. Processing
will continue to take place as needed in the background.
When this option is chosen, the Delay instruction must not
be placed in a conditional statement.
Delay will affect processing. Measurements will continue as
called for by the task sequencer.

Delay
Constant

The numeric value for the time delay.

Units

The units for the delay.

Constant

Alpha
Code

Numeric
Code

Units

USEC

0

microseconds

MSEC

1

milliseconds

SEC

2

seconds

MIN

3

minutes

Advertising