User`s guide
C/C++ Library • 61
5.15 _9111_AD_Set_Channel
@ Description
This function is used to set the AD channel by means of writing data to the
multiplexer scan channel register. There are 16 single-ended A/D
channels on the PCI-9111; therefore the channel number can be set
between 0 and 15. Under non-auto scan mode, the ADChannelNo stores
the channel number setting. Under auto-scan mode, the ADChannelNo
records the ending channel number.
@ Syntax
C/C++ (DOS)
U16 _9111_AD_Set_Channel (U16 cardNo, U16 ADChannelNo)
C/C++ (Windows 95)
U16 W_9111_AD_Set_Channel (U16 cardNo, U16
ADChannelNo)
Visual Basic (Windows 95)
W_9111_AD_Set_Channel (ByVal cardNo As Integer, ByVal
ADChannelNo As Integer) As Integer
@ Argument
cardNo: The card number of PCI-9111 card initialized.
ADChannelNo:Selected channel number or the ending channel number
to perform the A/D conversion.
@ Return Code
ERR_NoError