GX1110, GX1120
Function Generator and Arbitrary Waveform Generator modes.
Returns the board’s operation mode.
GtWaveGetOperationMode (nHandle, pnMode, 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. |
pnMode |
PSHORT |
Each channel can be programmed to operate as Function Generator or as an Arbitrary Waveform Generator, modes are as follows:0. GTWAVE_OPERATING_MODE_FUNC: Function Generator mode1. GTWAVE_OPERATING_MODE_ARB: Arbitrary Waveform Generator modeGTWAVE_OPERATING_MODE_ARB_HIGH_SPEED: High speed Arbitrary Waveform Generator mode. In this mode both channels A and B are combined into one channel (Channel A) to produce a high speed Arbitrary Waveform Generator that can run as high as 400 MS/s. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Each Channel can be programmed at any point in time to operate as Function Generator or as an Arbitrary Waveform Generator by calling the GtWaveSetOperationMode function. After calling GtWaveSetOperationMode function the board will be set to its default settings for the specified operation mode.
The following example returns the board’s operation mode:
SHORT nMode;
GtWaveGetOperationMode (nHandle, GTWAVE_CHANNEL_A, &nMode, &nStatus);
GtWaveSetOperationMode, GtWaveReset, GtWaveGetErrorString