Returns the Function Generator mode of operation.
Gx3348PulseGenGetMode (nHandle, pnMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle for the PXI board. |
pnMode |
PSHORT |
Returns the Function Generator mode of operation, modes are:0. GX3348_FUNC_GEN_MODE_CONTINUOUS: continuously outputting waveforms.1. GX3348_FUNC_GEN_MODE_TRIGGERED: each trigger, results in one waveforms. |
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 operation mode to trigger, and return the operation mode.
Note: see the Gx3348FuncGenTrigger() API for a complete C example.
SHORT nHandle, nStatus, nMode;
Gx3348FuncGenSetMode(nHandle, GX3348_FUNC_GEN_MODE_TRIGGERED, &nStatus);
Gx3348FuncGenGetMode(nHandle, &nMode, &nStatus);
Gx3348FuncGenIsSupported, Gx3348FuncGenSetLevels, Gx3348FuncGenSetMode, Gx3348FuncGenPulseSetTiming, Gx3348FuncGenSetState, Gx3348FuncGenTrigger, GxPdoGetErrorString