ADLINK ACL-8112 Series User Manual

Page 69

Advertising
background image

C Language Library

• 61

7.7

_8112_AD_Input_Mode

Description

This function is only used with the ACL-8112 ver. B series.

The ACL-8112 offers either 16 single-ended analog input channels or 8
differential analog input channels. If the ACL-8112 ver B card is used,
you have to call this function to initialize the A/D operation.

Syntax

int _8112_AD_Input_Mode( int ad_mode )

Argument:

ad_ch_mode:
SINGLE_ENDED: the analog inputs are single-ended

mode.

DIFFERENTIAL : the analog inputs are differential.

Return Code:

ERR_NoError
ERR_BoardNoInit
ERR_InvalidADChannel

Example:

#include “8112.h”

main()
{
int j;

_8112_Initial( CARD_1, A8112B_DG, 0x210 );
/* Assume ERR_NoError when Initialize ACL-8112 */

_8112_Initial( CARD_2, A8112B_HG, 0x220 );
/* Assume ERR_NoError when Initialize ACL-8112 */

_8112_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 */

Advertising