User`s guide

C/C++ Library 55
@ Argument
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
5.13 _8316_AD_Range
@ Description
This function is used to set the A/D analog input range by means of
writing data to the A/D range control register. For ACL-8316/12 card, the
gain values only support 1, 2, 4, 8 four levels. The relationship between
analog input voltage ranges and gains are specified by table below:
AD_INPUT GAIN Input Range
AD_B_10_V 1
10V
AD_B_5_V 2
5V
AD_B_2_5_V 4
2.5V
AD_B_1_25_V 8
1.25V
@ Syntax
I16 _8316_AD_Set_Range(U8 ad_range )
@ Argument
U8 ad_range: the programmable range of A/D conversion,the possible
value are:
AD_B_10_V, AD_B_5_V, AD_B_2_5_V, and
AD_B_1_25_V
@ Return Code
ERR_NoError, ERR_BoardNoInit, ERR_AD_InvalidGain