uSyntax
Visual C++
int W_9112_AD_Timer (int card_number, unsigned int c1, unsigned int c2)
Visual Basic
W_9112_Timer (ByVal card_number As Long, c1 As Long, c2 As Long) As Long
C/C++ ( DOS)
int _9112_AD_Timer(int card_number, unsigned int c1 , unsigned int c2 )
uArgument
card_number : the card number of
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.
uReturn Code
ERR_NoError
ERR_BoardNoInit
ERR_InvalidTimerValue
uExample
main() |
|
{ |
|
int | errCode; |
Int | baseAddr, irqNo; |
_9112_Initial( CARD_1, &baseAddr, &irqNo);
/* Assume NoError when Initialize
_9112_AD_Timer(CARD_1,10 , 10 );
/* set AD sampling rate to 2MHz/(10*10) */
..
_9112_AD_Timer(CARD_1, 0 , 0 ); /* stop the pacer trigger */
}