User`s guide
C/C++ Library 
•
 47 
5.8 _8216_AD_Input_Mode 
@Description 
This function is only useful for ACL-8216 ver. B series.This function is 
used to set A/D input mode to single-ended or differential mode. The 
default mode of A/D input is single-ended, so the A/D channel number 
can be set between 0 to 15. If the A/D mode is set as differential, the 
input channel can be selected from channel 0 to 7 only. You have to 
call this function before the A/D operation is processed. 
@ Syntax 
int _8216_Input_Mode(int ad_mode ) 
@ Argument 
ad_mode:
SINGLE_ENDED:
  the analog inputs are 
single-ended mode 
 DIFFERENTIAL:
  the analog inputs are 
single-ended mode 
@ Return Code 
ERR_NoError 
ERR_BoardNoInit 
@ Example 
#include "8216.h" 
main() 
{ 
 _8216_Initial( CARD_1, 0x210 ); 
 /* Assume NoError when Initialize ACL-8216 */ 
 _8216_Initial( CARD_2, 0x220 ); 
 /* Assume NoError when Initialize ACL-8216 */ 
 _8216_AD_Input_Mode( DIFFERENTIAL ); 
 /* set analog input mode as “differential” mode 
*/ 
 /* if this function is not called, the default 
input mode is single-ended mode */ 
 _8216_Switch_Card_No(CARD_1); 
 _8216_AD_Input_Mode( SINGLE_ENDED ); 
 … 
 _8216_AD_Set_Channel( 3 ); 
 printf( " AD channel 3 is now selected.\n" ); 
 … 
 /*the following A/D’s operation is based on 
channel 3 */ 
} 










