User`s guide

62 C/C++ Library
5.16 _9111_AD_Get_Channel
@ Description
This function reads from the multiplexer scan channel register and
obtains the AD channel number and the stores the value in ADChannelNo.
Under non-auto scan mode, bits 0 to 3 of the ADChannelNo stores the
channel number setting and bits 4 to 7 of the ADChannel are all ‘0”. Under
auto-scan mode, bits 0 to 3 of the ADChannelNo record the ending
channel number. Bits 4 to 7 of ADChannelNo are the selected channel.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_Get_Channel (U16 cardNo, U16 *ADChannelNo )
C/C++ (Windows 95)
U16 W_9111_AD_Get_Channel (U16 cardNo, U16
*ADChannelNo)
Visual Basic (Windows 95)
W_9111_AD_Get_Channel (ByVal cardNo As Integer, ADChannelNo As
Integer) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized
ADChannelNo: Channel number to perform the A/D conversion
@ Return Code
ERR_NoError