GtWaveFuncGetWaveform

Supported By

GX110, GX1120

Applies To

Function Generator mode only.

Purpose

Returns the loaded waveform type.

Syntax

GtWaveFuncGetWaveform (nHandle, nChannel, pnWaveform, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX11X0 board.
nChannel
SHORT
Specified Channel number.
GX1120:
0 = GTWAVE_CHANNEL_A: Channel A.
GX1120:
0 = GTWAVE_CHANNEL_A: Channel A.
1 = GTWAVE_CHANNEL_B: Channel B.
pnWaveform
PSHORT
Standard waveforms can be one of the following:
0.        GTWAVE_WAVEFORM_SINE: Sinusoidal waveform.
1.        GTWAVE_WAVEFORM_SQUARE: Square waveform.
2.        GTWAVE_WAVEFORM_TRIANGLE: Triangular waveform.
3.        GTWAVE_WAVEFORM_RAMP_UP: Positive ramp waveform
4.        GTWAVE_WAVEFORM_RAMP_DOWN: Negative ramp waveform
5.        GTWAVE_WAVEFORM_RAMP_DC: Constant voltage
6.        GTWAVE_WAVEFORM_NOISE: White noise
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example loads a sinusoid waveform:

 

SHORT  nWaveform;

GtWaveFuncGetWaveform (nHandle, GTWAVE_CHANNEL_A, &nWaveform, &nStatus);

 

See Also

GtWaveFuncSetWaveform, GtWaveRun, GtWaveStop, GtWaveTrig, GtWaveGetStatusRegister, GtWaveSetAmplitude, GtWaveSetFilterMode, GtWaveSetOffset, GtWaveSetOperationMode, GtWaveSetOutputState, GtWaveSetReferenceClockSource, GtWaveSetVoltageRangeMode, GtWaveGetErrorString