National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Block_PG_Config
NI-DAQ FRM for PC Compatibles 2-154
©
National Instruments Corporation
DIG_Block_PG_Config
Format
status = DIG_Block_PG_Config (deviceNumber, group, config, reqSource, timebase,
reqInterval, externalGate)
Purpose
Enables or disables the pattern generation mode of buffered digital I/O. When pattern
generation is enabled, this function also determines the source of the request signals and,
if these are internal, the signal rate and gating mode.
Parameters
Input
Parameter Discussion
group is the group for which pattern generation is to be enabled or disabled.
Range: 1 or 2.
config is a flag that enables or disables pattern generation.
0: Disable pattern generation.
1: Enable pattern generation using request-edge latching output (input always uses
request-edge latching).
2: Enable pattern generation without request-edge latching (input always uses
request-edge latching).
reqSource
0: Internal. The board generates requests internally from onboard counters.
1: External. The board accepts requests from the REQ pin on the I/O connector.
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group
config i16 enables or disables pattern generation
reqSource i16 source of the request signals
timebase i16 timebase value
reqInterval u16 number of timebase units between request signals
externalGate i16 enables or disables external gating