GtWaveSetReferenceClockSource

Supported By

GX110, GX1120

Applies To

Function Generator and Arbitrary Waveform Generator modes.

Purpose

Sets the reference clock source.

Syntax

GtWaveSetReferenceClockSource (nHandle, 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
Reference clock source are:
0.        GTWAVE_REF_CLOCK_SOURCE_INTERNAL: Reference clock source is the internal 10MHz clock
1.        GTWAVE_REF_CLOCK_SOURCE_EXTERNAL: Reference clock source is the external clock
2.        GTWAVE_REF_CLOCK_SOURCE_PXI10MHZ Reference clock source is the PXI backplan 10MHz clock
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example sets the reference clock source to internal:

 

GtWaveSetReferenceClockSource (nHandle, GTWAVE_CHANNEL_A, GTWAVE_REF_CLOCK_SOURCE_INTERNAL, &nStatus);

 

See Also

GtWaveSetMarkerToPxiTriggerBusLine, GtWaveRun, GtWaveStop, GtWaveTrig, GtWaveGetStatusRegister, GtWaveSetAmplitude, GtWaveSetOffset, GtWaveSetOperationMode, GtWaveSetOutputState, GtWaveGetReferenceClockSource, GtWaveGetErrorString