19
Return value
:
0
:
Success
;
-1: Failure.
AiSampleRateSet()
long
_stdcall
AiSampleRateSet(
unsigned
long
Index,
unsigned
long
DivFactor)
Notes
:
Set the sampling rate for hardware timing trigger acquisition
Parameter
:
Index
:
card index, to select the card to manage.
DivFactor
:
Frequency division factor
。
The timing trigger sampling rate is obtained by
dividing the 8MHz clock by the division factor.
For example
,
when set as 80
,
sampling rate=8MHz/80=100kHz
Attention
:
For single channel mode
,
the max sampling rate is 500kSp/s;
For multiple channels switching, the max sampling rate is 200kSp/s.
Return value
:
0
:
Success
;
-1: Failure.
IrqEnable()
long
_stdcall
IrqEnable(
unsigned
long
Index)
Notes
:
Enable interrupt.
Usually used in timing trigger acquisition, enabling interrupt lets the computer automatically
read the hardware FIFO data into software computer memory FIFO, to avoid the hardware
FIFO overflow.
Parameter
:
Index
:
card index, to select the card to manage.
Return value
:
0
:
Success
;
-1: Failure.
IrqDisable()
long
_stdcall
IrqDisable(
unsigned
long
Index)
Notes
:
Disable interrupt.
Parameter
:
Index
:
card index, to select the card to manage.
Return value
:
0
:
Success
;
-1: Failure.