Gx3788AnalogInScanGetCount

Purpose

Returns the analog input measurement count.

Syntax

Gx3788AnalogInScanGetCount (nHandle, pdwMeasureCount, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3788 board.
pdwMeasureCount
PDWORD
Returns the number of voltage measurements to take during a scan operation.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

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.

Example

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);

 

See Also

Gx3788AnalogInScanIsRunning, Gx3788AnalogInScanReadMemoryRawData, Gx3788AnalogInScanReadMemoryVoltages, Gx3788AnalogInScanSetChannelListIndex, Gx3788AnalogInScanSetCount, Gx3788AnalogInScanSetSampleRate, Gx3788AnalogInScanStart, GxFpgaGetErrorString