C Language Library
•
79
int _8112pg_AD_Timer( unsigned int c1 , unsigned int
c2 )
Argument:
c1:
frequency divider of timer #1
c2:
frequency divider of timer #2,
Note
: the A/D sampling rate is equal to:
2MHz / (c1 * c2),
when c1 = 0 or c2 = 0, the pacer trigger will be stopped.
Return Code:
ERR_NoError
ERR_BoardNoInit
ERR_InvalidTimerValue
Example:
main()
{
int
ErrCode;
_8112_Initial( CARD_1, A8112B_HG, 0x220 );
/* Assume ERR_NoError when Initialize ACL-8112 */
_8112_AD_Timer( 10 , 10 );
/* set AD sampling rate to 2MHz/(10*10) */
..
_8112_AD_Timer( 0 , 0 );
/* stop the pacer trigger */
}
7.21 _8112_TIMER_Start
Description
The Timer #0 on the ACL-8112 can be freely programmed by the
users. This function is used to program the Timer #0. This timer can
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 ...