National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Trigger_Config
NI-DAQ FRM for PC Compatibles 2-192
©
National Instruments Corporation
DIG_Trigger_Config
Format
status = DIG_Trigger_Config (deviceNumber, group, startTrig, startPol, stopTrig,
stopPol, ptsAfterStopTrig, pattern, patternMask)
Purpose
Sets up trigger configuration for subsequent buffered digital operations with pattern
generation mode only (either internal or external requests).
Parameters
Input
Parameter Discussion
startTrig specifies the source of the start trigger.
0: Software start trigger.
1: Hardware trigger.
2: Digital pattern trigger (input group only).
startPol specifies the polarity of the start trigger.
0: Active high.
1: Active low.
2: Pattern matched.
3: Pattern not matched.
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group
startTrig i16 source of start trigger
startPol i16 polarity of start trigger
stopTrig i16 source of stop trigger
stopPol i16 polarity of stop trigger
ptsAfterStopTrig u32 number of points to acquire after the trigger
pattern u32 data pattern on which to trigger
lineMask u32 mask selecting bits to be compared for pattern
or change detection