GX1110, GX1120
Function Generator mode only.
Sets the function generator’s output start phase in units of degrees.
GtWaveFuncSetPhase (nHandle, nChannel, dPhase, pnStatus)
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. |
dPhase |
DOUBLE |
Output start phase in units of degrees, -360 to 360. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The parameter defines the starting phase angle for the sine waveform.
The following example sets the function generator phase to 180 degrees:
GtWaveFuncSetPhase (nHandle, GTWAVE_CHANNEL_A, 180, &nStatus);
GtWaveFuncSetWaveform, GtWaveFuncSetSquareWaveDutyCycle, GtWaveFuncSetFrequency, GtWaveFuncSetOutToSquareState, GtWaveFuncGetPhase, GtWaveGetErrorString