GX1110, GX1120
Function Generator mode only.
Returns the function generator modulation frequency.
GtWaveFuncGetFrequency (nHandle, nChannel, pdFrequency, 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. |
pdFrequency |
PDOUBLE |
GX1120:Function generator frequency, frequency range is (GTWAVE_GX1120_FUNC_MIN_FREQUENCY) 10uHz to (GTWAVE_GX1120_FUNC_MAX_FREQUENCY) 30MHzGX1120:Function generator frequency, frequency range is (GTWAVE_GX1120_FUNC_MIN_FREQUENCY) 10uHz to (GTWAVE_GX1120_FUNC_MAX_FREQUENCY) 100MHz |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example returns the function generator's modulation frequency:
DOUBLE dFrequency;
GtWaveGetFrequency (nHandle, GTWAVE_CHANNEL_A, &dFrequency, &nStatus);
GtWaveFuncSetWaveform, GtWaveFuncSetSquareWaveDutyCycle, GtWaveFuncSetFrequency, GtWaveFuncSetOutToSquareState, GtWaveFuncSetPhase, GtWaveGetErrorString