68
•
C Language Library
/* Assume NoError when Initialize ACL-8112 */
_8112_AD_Input_Mode( DIFFERENTIAL) ;
/* set analog input mode as “differential” mode */
_8112_AD_Set_Range( AD_B_5_V );
printf( "The A/D analog input range is +/- 5V \n" );
_8112_AD_Set_Mode( AD_MODE_6 );
printf( "Now, disable internal trigger.\n" );
/* All A/D conversion will be trigger by internal timer
pacer, and the converted data should be transfered in
the interrupt service routine. ( ISR). */
}
7.11 _8112_AD_Soft_Trig
Description
This function is used to trigger the A/D conversion by software. When
the function is called, a trigger pulse will be generated and the
converted data will be stored in the base address Base +4 and Base
+5, and can be retrieved by function _8112_AD_Acquire(). Please refer
to section 7.12.
Syntax
int _8112_AD_Soft_Trig( void )
int _8112pg_AD_Soft_Trig( void )
Argument:
None
Return Code:
ERR_NoError
ERR_BoardNoInit
Example:
#include “8112.h”
Содержание 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 ...