70
•
C Language Library
_8112_Initial( CARD_1, 8112B-DG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */
/* Set to software trigger at first*/
_8112_AD_Set_Mode( AD_MODE_1 );
/* then trigger the AD */
_8112_AD_Soft_Trig();
/* wait for AD data ready then read it */
ErrCode = _8112_AD_Aquire( &ad_data );
if( ErrCode == ERR_NoError )
printf( "The AD value is %d.\n", ad_data );
else
printf( "AD conversion error happen\n" );
}
Also see deme program 'AD_DEMO.C'
7.13 _8112_CLR_IRQ
Description
This function is used to clear interrupt request which requested by the
ACL-8112. If you use interrupt to transfer A/D converted data, you
should use this function to clear interrupt request status, otherwise no
new coming interrupt will be generated.
Syntax
int _8112_CLR_IRQ( void )
int _8112pg_CLR_IRQ( void )
Argument:
None
Return Code:
ERR_NoError
ERR_BoardNoInit
7.14 _8112_AD_DMA_Start
Description
Содержание ACL-8112 Series
Страница 1: ...NuDAQ ACL 8112 Series Enhanced Multi Functions Data Acquisition Cards User s Guide ...
Страница 4: ......
Страница 40: ...32 Registers Format 1 1 1 1 1 000 Unipolar N A Table 4 2 1 Function of the Gain Control Bits ...
Страница 44: ...36 Registers Format Base 14 DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8 ...
Страница 46: ...38 Registers Format Base 2 Counter 2 Register R W Base 3 8254 CONTROL BYTE ...
Страница 49: ...Operation Theorem 41 mode control register BASE 11 The different transfer modes are specified as follows ...
Страница 61: ...C Language Library 53 ErrCode _8112_Initial CARD_2 A8112B_DG 0x220 if ErrCode ERR_NoError exit 0 ...
Страница 71: ...C Language Library 63 ...
Страница 81: ...C Language Library 73 Example See Demo Program AD_Demo4 C ...
Страница 85: ...C Language Library 77 ERR_AD_INTNotSet Example See demo program AD_Demo2 C ...