Sets the analog input measurement count.
Gx3788AnalogInScanSetCount (nHandle, dwMeasureCount, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3788 board. |
dwMeasureCount |
DWORD |
Sets the number of voltage measurements to take during a scan operation, Valid range is 1-4096. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The scan count is the number of sample clock periods that will be executed. During each clock period, the sequencer will capture samples for each channel defined in the channel list. The channel list can be modified by calling Gx3788AnalogInScanSetChannelListIndex
Note: see the Gx3788AnalogInScanStart() API for a complete example code.
The following example sets the number of samples to 100, and return back the analog in scan count:
SHORT nStatus;
DWORD dwMeasurementCount;
Gx3788AnalogInScanSetCount (nHandle, 100, &nStatus);
Gx3788AnalogInScanGetCount (nHandle, &dwMeasurementCount, &nStatus);
Gx3788AnalogInScanGetLastRunCount, Gx3788AnalogInScanIsRunning, Gx3788AnalogInScanReadMemoryRawData, Gx3788AnalogInScanReadMemoryVoltages, Gx3788AnalogInScanGetChannelListIndex, Gx3788AnalogInScanGetCount, Gx3788AnalogInScanSetSampleRate,
Gx3788AnalogInScanStart, GxFpgaGetErrorString