Sleep, Slow sequence – Campbell Scientific CR5000 Measurement and Control Module User Manual

Page 223

Advertising
background image

Section 9. Program Control Instructions

9-17

Sleep

The Sleep instruction is used to put the datalogger in a quiescent mode
between program scans.

Syntax
Sleep

Remarks
This instruction allows the datalogger to go into its lowest current state
between program scans. The Sleep instruction affects only the scan in which it
resides.

Sleep Program Example
The following program has two separate scans. One scan uses the Sleep
instruction to put the datalogger in low power mode between scans.

DIM DiffVolt1

'Declare variable for diff measurement

DIM SeVolt2

'Declare variable for se measurement

BeginProg

Scan (1,Sec,3,0)

'Scan interval = 1 second

VoltDiff

(DiffVolt1,1,mV5000,1,True ,100,250,1.0,0)

'Scan diff channel

NextScan

Scan (10,Min,3,0)

'Scan interval = 10 minutes

Sleep

'Low power between scans

VoltSe (SeVolt2,1,mV5000,1,1,100,250,1.0,0)

'Scan se channel

NextScan

EndProg

Slow Sequence

The SlowSequence instruction allows a group of measurements to be executed
at a rate slower than the main program.

Syntax
SlowSequence

Remarks
The SlowSequence statement marks the end of the main program and begins a
low priority program. The instructions for this program are executed when the
main program is not running as time allows.

It is possible to have up to four different SlowSequence scans for
measurements that are not needed at the rate of the primary scan interval. The
datalogger tags on measurement instructions from the SlowSequence scans to
the normal scan as time allows. At least one rep of a measurement instruction
from the SlowSequence scan is added to each normal scan (the requested
settling time occurs before the measurement). Thus, the primary scan interval
must be long enough to make the primary scan measurements plus the longest
single measurement (including settling time) from the scan in the
SlowSequence. In the case where the primary scan interval is only long enough
to allow one measurement fragment from the SlowSequence per primary scan,

Advertising