INT32S DRV_FAIIntStart ( PTR_T DeviceHandle, PT_FAIIntStart *lpFAIIntStart );
On the device indicated by the DeviceHandle, it initiates a single-channel FAI (Fast Analog Input) operation with the interrupt transfer, by way of specifying an AI channel and pre-initiating the sampling buffer for data storage.
For detailed information about FAI transfer, refer to Interrupt Transferring.
Some parameters, such as triggering source (TrigSrc), sampling rate (SampleRate), sampling channel (chan), GainCode (gain), sampling buffer (buffer), sampling count (count), cyclic mode (cyclic) and conversion count to create interrupt (IntrCount), are stored in the PT_FAIIntStart, structure pointed by the lpFAIIntStart.
|
Name |
Direction |
Range |
Description |
|
DeviceHandle |
input |
default |
The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
|
lpFAIIntStart |
input / output |
default |
The pointer to indicate the user-prepared structure PT_FAIIntStart that stores triggering source (INT16U TrigSrc), sampling rate (INT32U SampleRate), sampling channel (INT16U chan), input voltage range (INT16U gain), sampling buffer (INT16U * buffer), data count (INT32U count), cyclic mode (INT16U cyclic) and conversion count to create interrupt (INT16U IntrCount). |
| 1.0 | Successful. |
| 2. other value | Please reference ErrorCodes |