GtWaveFuncSetPhase

Supported By

GX1110, GX1120

Applies To

Function Generator mode only.

Purpose

Sets the function generator’s output start phase in units of degrees.

Syntax

GtWaveFuncSetPhase (nHandle, nChannel, dPhase, 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.
dPhase
DOUBLE
Output start phase in units of degrees, -360 to 360.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The parameter defines the starting phase angle for the sine waveform.

Example

The following example sets the function generator phase to 180 degrees:

 

GtWaveFuncSetPhase (nHandle, GTWAVE_CHANNEL_A, 180, &nStatus);

 

See Also

GtWaveFuncSetWaveform, GtWaveFuncSetSquareWaveDutyCycle, GtWaveFuncSetFrequency, GtWaveFuncSetOutToSquareState, GtWaveFuncGetPhase, GtWaveGetErrorString