Gx3348FuncGenPulseGetLevels

Purpose

Returns the Function Generator Pulse waveform’s base and peak voltage setting.

Syntax

Gx3348FuncGenPulseGetLevels (nHandle, pdBase, pdPeak, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle for the PXI board.
pdBase
PDOUBLE
Returns the Function Generator Pulse waveform’s base voltage level, range is -20V to +32V.
pdPeak
PDOUBLE
Returns the Function Generator Pulse waveform’s peak voltage level, range is -20V to +32V.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

Note: Function Generator functionality is only supported by firmware version 0x0000AC00 and above, use the Gx3348FuncGenIsSupported() API to check if supported.

Example

The following example sets the Pulse base voltage level to 0V, peak voltage to 10V, and returning the settings:

Note: see the Gx3348FuncGenTrigger() API for a complete C example.

 

SHORT nHandle, nStatus;

DOUBLE dBase, dPeak;

 

Gx3348FuncGenPulseetLevels (nHandle, 0.0, 10.0, &nStatus);

Gx3348FuncGenGetPulseLevels (nHandle, &dBase, &dPeak, &nStatus);

 

See Also

Gx3348FuncGenIsSupported, Gx3348FuncGenSetLevels, Gx3348FuncGenSetMode, Gx3348FuncGenPulseSetTiming, Gx3348FuncGenSetState, Gx3348FuncGenTrigger, GxPdoGetErrorString