beautypg.com

Waitdigtrig – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 355

background image

Section 9. Program Control Instructions

The following example program, SubScans.C9X, has one of each of
these SubScans

.

WaitDigTrig

Used to trigger a measurement scan off an external digital signal. Only the
CR9071E (not the CR9070) module supports this instruction.

Syntax

WaitDigTrig(

PSlot, Mask, Word

)

Remarks
The WaitDigTrig instruction should be placed directly after the Scan
instruction. Wait Digital Trigger is used to trigger a Scan loop sequence using
an external source connected to the digital input(s) of the CR9071E Digital I/O
Module. Using WaitDigTrig, the Scan loop is triggered externally rather than
by the CR9000X internal clock. The task sequencer will pause until the status
of the selected digital inputs on the CR9071E Digital I/O Module matches the
specified Word. Once the trigger condition is matched, the instructions within
the Scan/NextScan loop will be performed once. The trigger condition must

9-25