ADLINK PCM-9112+ User Manual
Page 58
![background image](/manuals/733387/58/background.png)
50
• C/C++ Library
5.8 _9112_AD_Set_Channel
@ Description
This function is used to set the AD channel by means of writing data to
the multiplexed scan channel register. There are 16 single-ended or 8
differential analog input channels in the PCI-9112, so the channel
number can be set between 0 to 15 for single-ended analog input mode,
and 0 to 7 for differential analog input mode. The initial state is channel
0 which is the default setting for the PCI-9112 hardware configuration.
@ Syntax
Visual C++ (Windows-95)
int W_9112_ AD_Set_Channel (int card_number, int ad_ch_no)
Visual Basic (Windows-95)
W_9112_AD_Set_Channel (ByVal card_number As Long, ByVal
da_ch_no As Long) As Long
C/C++ ( DOS)
int _9112_AD_Set_Channel (int card_number, int ad_ch_no )
@ Argument
card_number:
the card number of PCI-9112
ad_ch_no: channel number to perform AD conversion
for single-ended mode: channel no. is from 0-15; for
differential mode: channel no. is from 0-7
@ Return Code:
ERR_NoError, ERR_BoardNoInit
ERR_InvalidADChannel