User`s guide
C/C++ Library for DOS • 23
5.5 _8113_Channel_Select/Deselect
Description
The library functions that do the A/D conversions on multiple channels at
once. You may select multiple channels to do the conversions on. The
channels are not necessary to select as contiguous, i.e. the channels can be
selected in any order, but the conversion sequence will be done in numerical
order. The following functions are used to support A/D channel selection and
deselection.
_8113_Channel_Select: selects a particular channel for
conversion.
_8113_Channel_Deselect: removes a channel from the list
of selected channles.
_8113_Channel_Clear: clears all the channles from the
list of slected list, and no channel is selected.
_8113_ChannelNo_Get: returns the number of selected
channels.
Syntax
int _8113_Channel_Select( int channel )
int _8113_Channel_Deselect( int channel)
int _8113_Channel_Clear( void)
int _8113_ChannelNo_Get( int *no)
Argument
channel: channel number to perform A/D conversion
( 0 ... 31)
Return Code
ERR_NoRrror
ERR_InvalidBoardNumber
ERR_BaseAddressError
Example
#include "8113.h"
main()
{
_8113_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-8113A */
_8113_ActCard_Set( CARD_1);
/* select CARD_1 as active card */
_8113_Channel_Select( 3 );