User`s guide

40 C/C++ Library
cardNo: The card number of PCI-9111 card initialized
DIData: The value accessed from digital input port
@ Return Code
ERR_NoError
5.7 _9111_DI_Channel
@ Description
This function is used to read data from digital input port. There are 16
digital input channels on PCI_9111. You can read each digital input
channel by this function directly. As this function is performing, 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 digital output, the value has
to be set from 0 to 15.
di_data: The value read from digital input channel, either 0 or 1.
@ Return Code
ERR_NoError
ERR_InvalidDIChannel
5.8 _9111_EDI
@ Description
There are 4 extended digital input channels on PCI_9111. This function is
used to read data from extended digital input ports. The retrieved data is
stored in DIData and only the 4 LSBs of DIData is the valid input data.
@ Syntax
C/C++ (DOS)
U16 _9111_EDI (U16 cardNo, U16 *DIData)
C/C++ (Windows 95)
U16 W_9111_EDI (U16 cardNo, U16 *DIData)