GtWaveSetAmSource

Supported By

GX110, GX1120

Applies To

Function Generator and Arbitrary Waveform Generator modes.

Purpose

Sets the AM modulation source.

Syntax

GtWaveSetAmSource (nHandle, nChannel, nSource, 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.
nSource
SHORT
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 sets the AM modulation source to internal:

 

GtWaveSetAmSource (nHandle, GTWAVE_CHANNEL_A, GTWAVE_AM_SOURCE_INTERNAL, &nStatus);

 

See Also

GtWaveSetAmDepth, GtWaveSetAmFrequency, GtWaveGetAmSource, GtWaveSetAmState, GtWaveSetAmWaveform, GtWaveGetErrorString