Gx3788AnalogInScanGetLastRunCount

Purpose

Returns the analog input measurement count from the last scan operation.

Syntax

Gx3788AnalogInScanGetLastRunCount (nHandle, pdwMeasureCount, pnStatus)

Parameters

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

Comments

Note: see the Gx3788AnalogInScanStart() API for a complete example code.

Example

The following example gets the analog in scan count of the last scan operation:

 

SHORT nStatus;

DWORD dwMeasurementCount;

 

Gx3788AnalogInScanGetLastRunCount (nHandle, &dwMeasurementCount, &nStatus);

 

See Also

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