Gx3348FuncGenPulseSetLevels

Purpose

Sets the Function Generator Pulse waveform base and peak voltage setting.

Syntax

Gx3348FuncGenPulseSetLevels (nHandle, dBase, dPeak, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle for the PXI board.
dBase
DOUBLE
Function Generator Pulse waveform base voltage setting, range is -20V to +32V.  
dPeak
DOUBLE
Function Generator Pulse waveform peak voltage setting, 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