Gx3348FuncGenPulseGetTiming

Purpose

Returns the Function Generator Pulse waveform’s delay and width setting.

Syntax

Gx3348FuncGenPulseGetTiming (nHandle, pdwDelay, pdwWidth, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle for the PXI board.
pdwDelay
PDWORD
Returns the pulse delay setting in uSec, range is 1 uSec to 4294967295 uSec.
pdwWidth
PDWORD
Returns the pulse width setting in uSec, range is 1 uSec to 4294967295 uSec.  
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. Sets the pulse delay to 10mSec and the width to 20mSec, and return the pulse delay and width settings.

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

 

SHORT nHandle, nState, nStatus, nMode;

DOUBLE dBase, dPeak;

DWORD dwPulseDelay, &dwPulseWidth;

 

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

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

Gx3348FuncGenPulseSetTiming(nHandle, 10000, 20000, &nStatus);

Gx3348FuncGenPulseGetTiming(nHandle, &dwPulsePeriod, &dwPulseWidth, &nStatus);

 

See Also

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