Sets the Function Generator Pulse waveform’s delay and width setting.
Gx3348FuncGenPulseSetTiming (nHandle, dwDelay, dwWidth, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle for the PXI board. |
dwDelay |
DWORD |
Pulse delay setting in uSec, range is 1 uSec to 4294967295 uSec. |
dwWidth |
DWORD |
Pulse width setting in uSec, range is 1 uSec to 4294967295 uSec. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Note: Function Generator functionality is only supported by firmware version 0x0000AC00 and above, use the Gx3348FuncGenIsSupported() API to check if supported.
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 20 mSec, 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);
Gx3348FuncGenIsSupported, Gx3348FuncGenSetLevels, Gx3348FuncGenSetMode, Gx3348FuncGenSetState, Gx3348FuncGenTrigger, GxPdoGetErrorString