![NuDAQ ACL-8112 Series User Manual Download Page 60](http://html1.mh-extra.com/html/nudaq/acl-8112-series/acl-8112-series_user-manual_1716414060.webp)
52
•
C Language Library
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 Multi-Scan Register. The
control code for different version has
a little difference. For details,
please refer hardware manual for each
ACL-8112 card.
base_address:
the I/O port base address of the card,
the default address on the hardware setting
is Hex 220.
Return Code:
ERR_NoError
ERR_InvalidBoardNumber
ERR_BaseAddressError
Example:
#include "8112.h"
main()
{
int
ErrCode;
Errcode = _8112_Initial( CARD_1, A8112B_HG,
0x210 );
if ( ErrCode != ERR_NoError )
exit(0);
Summary of Contents for ACL-8112 Series
Page 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Page 4: ......
Page 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Page 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Page 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Page 71: ...C Language Library 63 ...
Page 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Page 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...