Gx3788AnalogInScanIsRunning

Purpose

Returns if a scan operation is in progress.

Syntax

Gx3788AnalogInScanIsRunning (nHandle, pbIsRunning, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3788 board.
pbIsRunning
PBOOL
Returns the scan operation rung status.
  • TRUE: if an analog in scan operation is in progress.

  • FALSE: if an analog in scan operation is not running.

pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function returns if a scan operation is in progress.

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

Example

The following example checks if a scan operation is in progress:

 

SHORT nStatus;

BOOL bRunning;

 

Gx3788AnalogInScanIsRunning (nHandle, &bRunning, &nStatus);

if (bRunning)

    printf("Analog In Scan in progress...");

else

    printf("Analog In Scan not running");

 

 

See Also

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