Gx3722DigitizerReadStatic

Purpose

Takes a static voltage reading from the specified digitizer channel.

Syntax

Gx3722DigitizerReadStatic (nHandle, nChannel, pdMeasurement, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nChannel
SHORT
Channel number:
1.      GX3722_DIGITIZER_CH1.
2.    GX3722_DIGITIZER_CH2.
pdMeasurement
PDOUBLE
Returns the measurement in Volts.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

If this function is called while the Digitizer channels are still sampling after calling Gx3722DigitizerTrigger() API, the command will be cancelled and any data read back from a call to Gx3722DigitizerReadWaveform() API is considering invalid.

Example

The following example will take a single voltage reading on ADC channel 2:

 

DOUBLE dMeas;

 

Gx3722DigitizerReadStatic (nHandle, GX3722_DIGITIZER_CH2, &dMeas, &nStatus);

 

See Also

Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, GxFpgaGetErrorString