GX1110, GX1120
Function Generator mode only.
Returns the function generator’s output starting phase in units of degrees.
GtWaveFuncGetPhase (nHandle, nChannel, pdPhase, 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. |
pdPhase |
PDOUBLE |
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 returns the function generator’s phase:
DOUBLE dPhase;
GtWaveFuncGetPhase (nHandle, GTWAVE_CHANNEL_A, &dPhase, &nStatus);
GtWaveFuncSetWaveform, GtWaveFuncSetSquareWaveDutyCycle, GtWaveFuncSetFrequency, GtWaveFuncSetPhase, GtWaveGetErrorString