User`s guide
C/C++ Library • 53
5.5 _9111_DO_Channel
@ Description
This function is used to write data to the digital output ports. There are 16
digital output channels on the PCI_9111. You can control each digital
output channel using this function. When performing this function, the
digital output port is written to and the output status is changed to the
value you had specified by do_data.
@ Syntax
C/C++ (DOS)
U16 _9111_DO_Channel (U16 cardNo, U16 do_ch_no , Boolean
do_data)
C/C++ (Windows 95)
U16 W_9111_DO_Channel (U16 cardNo, U16 do_ch_no , Boolean
do_data)
Visual Basic (Windows 95)
W_9111_DO_ByVal cardNo As Integer, ByVal do_ch_no As Integer,
ByVal do_data As Byte) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized
do_ch_no: The channel number to perform the digital output, the value
is between 0 to 15.
do_data: The value written to digital output port, either 0 or 1.
@ Return Code
ERR_NoError
ERR_InvalidDOChannel