National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference DIG_Out_Grp
NI-DAQ FRM for PC Compatibles 2-178
©
National Instruments Corporation
DIG_Out_Grp
Format
status = DIG_Out_Grp (deviceNumber, group, groupPattern)
Purpose
Writes digital output data to the specified digital group.
Parameters
Input
Parameter Discussion
group is the group to be written to.
Range: 1 or 2.
groupPattern is the digital data to be written to the specified port. NI-DAQ maps
groupPattern to the digital output ports making up the group in the following way:
If the group contains one port, NI-DAQ writes the low-order eight bits of groupPattern
to that port.
If the group contains two ports, NI-DAQ writes all 16 bits of groupPattern to those
ports. If the group contains ports 0 and 1, NI-DAQ writes the low-order eight bits to port
0 and the high-order eight bits to port 1. If the group contains ports 2 and 3, NI-DAQ
writes the low-order eight bits to port 2 and the high-order eight bits to port 3. NI-DAQ
writes to the two ports simultaneously.
If the group contains four ports, NI-DAQ returns a deviceSupportError. Use
DIG_Block_Out to write to a group containing four ports.
Using This Function
DIG_Out_Grp writes the specified digital data to the group on the specified device. If
you have not configured the specified group as an output group, NI-DAQ does not perform
the operation and returns an error. If you have assigned no ports to the specified group,
NI-DAQ does not perform the operation and returns an error. You must call
DIG_Grp_Config to configure a group.
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group
groupPattern i16 digital data to be written