INT32S DRV_FAIIntScanStart ( PTR_T DeviceHandle, PT_FAIIntScanStart *lpFAIIntScanStart );
On the device indicated by the DeviceHandle, it initiates multi-channel FAI (Fast Analog Input) operation (scanned channel by channel) with the interrupt transferring mode, by way of specifying the starting AI channel and channel number as well as pre-initiating sampling buffer for data storage.
Some parameters, such as triggering source (TrigSrc), total sampling rate (SampleRate), sampling channel count (NumChans), start channel (StartChan), GainCode list pointer (GainList), sampling buffer (buffer), sampling count (count), cyclic mode (cyclic) and interrupt count (IntrCount), are stored in the PT_FAIIntScanStart, structure pointed by the lpFAIIntScanStart.
|
Name |
Direction |
Range |
Description |
|
DeviceHandle |
input |
default |
The pointer retrieved from the DRV_DeviceOpen which specifies the target device. |
|
lpFAIIntScanStart |
input / output |
default |
The pointer to indicate the user-prepared structure PT_FAIIntScanStart that stores triggering source (INT16U TrigSrc), total sampling rate (INT32U SampleRate), sampling channel count (INT16U NumChans), start channel (INT16U StartChan), GainCode list (INT16U * GainList), sampling buffer (INT16U *buffer), data count (INT16U count), cyclic mode (INT16U cyclic) and transfer count to create interrupt (INT16U IntrCount). |
| 1. 0 | Successful. |
| 2. other value | Please reference ErrorCodes |