GX1120
Function Generator mode only.
Sets the Phase Modulation waveform.
GtWaveFuncSetPmWaveform(nHandle, nChannel, nWaveform, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX11X0 board. |
nChannel |
SHORT |
Specified Channel number.GX1120:0 = GTWAVE_CHANNEL_A: Channel A.GX1120:1 = GTWAVE_CHANNEL_B: Channel B. |
nWaveform |
SHORT |
Standard waveform 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 waveform4. GTWAVE_WAVEFORM_RAMP_DOWN: Negative ramp waveform |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example sets the PM modulation waveform:
GtWaveFuncSetPmWaveform (nHandle, GTWAVE_CHANNEL_A, GTWAVE_WAVEFORM_SINE, &nStatus);
GtWaveFuncGetPmWaveform, GtWaveFuncSetPmFrequency, GtWaveFuncSetPmSource , GtWaveFuncDetPmState, GtWaveGetErrorString