typedef struct tagPT_FAIIntScanStart
{
INT16U TrigSrc;
INT32U SampleRate;
INT16U NumChans;
INT16U StartChan;
INT16U *GainList;
INT16U *buffer;
INT32U count;
INT16U cyclic;
INT16U IntrCount;
} PT_FAIIntScanStart, * LPT_FAIIntScanStart;
PT_FAIIntScanStart is used in function DRV_FAIIntScanStart.
| Name | Direction | Range | Description |
| TrigSrc | input | 0,1 | The triggering source: external (1), internal (0) |
| SampleRate | input | Depends on the pacer on hardware. | The total sampling rate on scanning channels (Hz).
Since the sampling is performed channel by channel, the exact sampling rate
of single channel can be calculated in the following formula: Sampling rate of single channel = SampleRate / NumChans |
| NumChans | Input | 1-N (N is the maximum AI channel number) | The sampling channel count. |
| StartChan | input | 0-(N-1) (N is the maximum AI channel number) | The starting channel for scanning. The range is from
the minimum zero (the first AI channel) to the maximum AI channel number
minus one. For
example, the range will be from 0 to (N-1) on a device with N
written as the number of the AI channel. The last
channel can be calculated with the following formula: number of the last channel = StartChan + NumChans |
| GainList | input | Depends on the hardware. | The pointer which indicates the GainCode list that stores the GainCode. It is used to configure the target sampling channels in order from StartChan to the last sampling channel. The voltage input range is determined by the GainCode list. Please refer to the Hardware Manual for details. |
| buffer | output | 1-65536 | The sampling data buffer. Please refer to the FastAnalogInput to set a buffer with proper size. |
| count | input | 1-N(N is the sampling data count. ) | It must be above zero, an even number (because of memory alignment and performance), or a multiple of half the FIFO size if FIFO is used. |
| cyclic | input | 0,1 | The cyclic mode: 0-Non-cyclic 1-Cyclic |
| IntrCount | input | Depends on the hardware. | It sets the count of conversions that create an
interrupt. If FIFO is not used, it should be set to 1; if FIFO is used, it should be set to half the FIFO size (FIFO_SIZE). |