Gx3722DigitizerGetSampleStatus

Purpose

Returns the state of the digitizer.

Syntax

Gx3722DigitizerGetSampleStatus (nHandle, pnSampleStatus, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
pnSampleStatus 
PSHORT
Returns the current state of the digitizer:
0.      GX3722_DIGITIZER_STATUS_DONE: The digitizer is idle.
1.    GX3722_DIGITIZER_STATUS_BUSY: The digitizer is sampling.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The sample count is the number of samples that are digitized after calling Gx3722DigitizerTrigger() API.

Example

The following example triggers the digitizer and then queries status in a loop until the sampling is completed:

 

Gx3722DigitizerTrigger (nHandle, &nStatus);

do

{

    Sleep(100);

    Gx3722DigitizerGetSampleStatus (nHandle, &nSampleStatus, &nStatus);

} while (nSampleStatus==GX3722_DIGITIZER_STATUS_BUSY);

 

See Also

Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerSetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerGetState, GxFpgaGetErrorString