GtWaveGetAmSource

Supported By

GX1110, GX1120

Applies To

Function Generator and Arbitrary Waveform Generator modes.

Purpose

Returns the AM modulation source.

Syntax

GtWaveGetAmSource (nHandle, nChannel, pnSource, 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.
pnSource
PSHORT
AM modulation source are:
0.        GTWAVE_AM_SOURCE_INTERNAL: AM modulation source internal.
1.        GTWAVE_AM_SOURCE_EXTERNAL: AM modulation source external.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns the AM modulation source:

 

SHORT nSource;

GtWaveGetAmSource (nHandle, GTWAVE_CHANNEL_A, &nSource, &nStatus);

 

See Also

GtWaveSetAmDepth, GtWaveSetAmFrequency, GtWaveSetAmSource, GtWaveSetAmState, GtWaveSetAmWaveform, GtWaveGetErrorString