ADLINK cPCI-9116 User Manual

Page 68

Advertising
background image

58

• C++ Library

6.5.2 _9116_AD_Set_CFIFO

@ Description

This function is used to specify the A/D channel and the input range.

Note:

_9116_AD_Clr_CFIFO should be called before you use this

function to set the channels and gains in the Channel-Gain
Queue. After the settings are completed, you have to call
_9116_AD_CFIFO_SetDone to stop filling out the Channel-Gain
Queue. The sequence to call these three functions is:

_9116_AD_Clr_CFIFO();

_9116_AD_Set_CFIFO();
:

: Setting A/D channels

: and gains

_9116_AD_Set_CFIFO();

_9116_AD_CFIFO_SetDone

();

@ Syntax

C/C++ (DOS)

int _9116_AD_Set_CFIFO( I16 card_number, I16 ch, I16 range, U16
diff, U16 cmmd_sel )

@ Argument

card_number:

the card number of the cPCI-9116 to be initialized,
totally 4 cards can be initialized, valid card
numbers are CARD_1, CARD_2, CARD_3,
CARD_4.

ch :

the channel which is being set, valid values are
between 0 to 63 for single-ended configuration
and 0 to 31 for differential mode configuration.

range :

the A/D input range, possible values are listed in
column ‘AD_INPUT’ of the following table.

Advertising