54
•
C Language Library
7.2 _8112_Switch_Card_No
Description
This function is used on dual-cards system. After initialized two ACL-
8112 cards, this function is used to select which card is used currently.
Note:
In this library, only two ACL-8112 can be initialized. The reason is
only two DMA channels are supported in the card.
Syntax
int _8112_Switch_Card_No(int card_number)
int _8112pg_Switch_Card_No(int card_number)
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.
Return Code:
ERR_NoError
ERR_InvalidBoardNumber
Example:
#include “8112.h”
main()
{
_8112_Initial( CARD_1, A8112B_HG, 0x210 );
_8112_Initial( CARD_2, A8112B_DG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */
_8112_Switch_Card_No( CARD_1 );
/*
..... You can perform certain functions
to Card_1 here
*/
_8112_Switch_Card_No( CARD_2 );
/*
..... You can perform certain functions
to Card_2 here
*/
}
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 ...