ADLINK ACL-8112 Series User Manual
Page 62

54
• C Language Library
7.1
_8112_Initial
Description
All ACL-8112 cards are initialized according to its card number and its
corresponding base address. Every ACL-8112 Multi-Function Data
Acquisition Card must be initialized using this function before any other
function calls are permitted.
Syntax
int _8112_Initial(int card_number, int type, int
base_addresss )
int _8112pg_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.
Type
:there are 4 different types of ACL-8112
cards, they are:
A8112B_
HG: 8112 High Gain card Ver. B
A8112B_DG: 8112 Low Gain card Ver. B
A8112C_HG: 8112 High Gain card Ver. C
A8112C_DG: 8112 Low Gain card Ver. C
Note: the difference between Ver.B and
Ver.C is the Multi-Scan Register. The
control code for each version is
slight different. For details, please
refer to the hardware manual for the
specific ACL-8112 card.
base_address: the I/O port base address of the card
is set at 220 Hex default.
Return Code:
ERR_NoError
ERR_InvalidBoardNumber
ERR_BaseAddressError