User`s guide

C/C++ Library 55
5.7 _9111_DI_Channel
@ Description
This function is used to read data from the digital input port. There are 16
digital input channels on the PCI_9111. You can read each digital input
channel using this function. While performing this function, the digital
input port is read and the value of the specified channel is stored in *data.
@ Syntax
C/C++ (DOS)
U16 _9111_DI_Channel (U16 cardNo, U16 di_ch_no , Boolean
*di_data )
C/C++ (Windows 95)
U16 W_9111_DI_Channel (U16 cardNo, U16 di_ch_no , Boolean
*di_data )
Visual Basic (Windows 95)
W_DAQ1210_DI_Channel (ByVal cardNo As Integer, ByVal di_ch_no
As Integer, di_data As Byte) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized
di_ch_no: The channel number to perform the digital output, the value
is between 0 to 15.
di_data: The value read from the digital input channel, either 0 or 1.
@ Return Code
ERR_NoError
ERR_InvalidDIChannel