GtWaveGetReferenceClockSource

Supported By

GX1110, GX1120

Applies To

Function Generator and Arbitrary Waveform Generator modes.

Purpose

Returns the reference clock source.

Syntax

GtWaveGetReferenceClockSource (nHandle, 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
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 returns the reference clock source:

 

SHORT nSource;

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

 

See Also

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