C/C++ Library for DOS
•
21
5.3 _8113_Initial
Ø
Description
An ACL-8113A card is initialized according to the card number and the
corresponding base address. Every ACL-8113A 32-channel A/D Card have
to be initialized by this function before calling other functions.
Ø
Syntax
int _8113_Initial(int card_number, int base_addresss )
Ø
Argument
card_number:
The card number to be initialized, up to
eight
cards can be initialized in one system, the
card number must be 0,..., 7.
base_address:
this parameter tells the library which I/O
base address is jumper selected on the card. Please
refer to I/O base address setting of ACL-8113A.
Ø
Return Code
ERR_NoRrror
ERR_InvalidBoardNumber
ERR_BaseAddressError
Ø
Example
#include "8113.h"
main()
{
int ErrCode;
Errcode = _8113_Initial( CARD_1, 0x220 );
if( ErrCode != NoError )
{
printf( " The initializtion of ACL-8113A card is
failed \n");
printf( " Base Address is 0x220 \n");
exit(0);
}
ErrCode = _8113_Initial( CARD_2, 0x230 );
if( ErrCode != NoError )exit(0);
.
.
.
}
Summary of Contents for NuDAQ ACL-8113A
Page 1: ...NuDAQ ACL 8113A 12 bit 32 Channels Isolated Analog Input Card User s Guide ...
Page 3: ......
Page 7: ......