C/C++ Library for DOS
•
27
5.8 _8113_MAD_Acquire
Ø
Description
This function does one A/D conversion on each of the selected channels, and
puts the data in the array call ' Data_8113', which is defined in the file
"8113.h". The data array is defined as:
extern unsigned Data_8113[31];
If the channels in the selected list are 3, 8, 9, and 15, then the converted
values for channel 3 will be stored in Data_8113[3], channel 8 in
Data_8113[8], ..., etc.
Ø
Syntax
int _8113_MAD_Aquire( )
Ø
Return Code
ERR_NoRrror
ERR_InvalidBoardNumber
ERR_BaseAddressError
Ø
Example
#include "8113.h"
main()
{
_8113_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-8113A */
_8113_ActCard_Set( CARD_1);
/* select CARD_1 as active card */
_8113_Channel_Select( 3 );
printf( "AD channel 3 is now selected.\n" );
_8113_Channel_Select( 5); /* channel 5 is selected */
_8113_Channel_Select( 7); /* channel 7 is selected */
.
.
_8113_MAD_Acquire( );
/* The analog signals in channel 3, 5 and 7 will be
converted to digital data and save in the Data-
_8113[3], Data_8113[5], and Data_8113[7] */
.
.
..
_8113_Channel_Clear();
/* all the channels in the selected list are removed */
}
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: ......