ADLINK ACL-8216 User Manual
Page 50

42 • C/C++ Library
5.2 _8216_Initial
@ Description
An ACL-8216 card is initialized according to the card number and the
corresponding base address. Every ACL-8216 Multi-Function Data
Acquisition Card have to be initialized by this function before calling
other functions.
@ Syntax
int _8216_Initial(int card_number, int
base_addresss )
@ Argument
card_number: The card number to be initialized,
only two cards can be initialized,
the card number must be CARD_1 or
CARD_2.
base_address: The I/O port base address of the
card .
@ Return Code
ERR_NoError
ERR_InvalidBoardNumber
ERR_BaseAddressError
@ Example
#include "8216.h"
#include "aclerr.h"
main()
{
int ErrCode;
Errcode = _8216_Initial( CARD_1, 0x210 );
if( ErrCode != ERR_NoError ) exit(0);
ErrCode = _8216_Initial( CARD_2, 0x220 );
if( ErrCode != ERR_NoError ) exit(0);
.
.
.
}