GxAoStandardWaveformSetGroupSync

Purpose

Sets the synchronization state of the board.

Applied To

GX1632e

Syntax

GxAoStandardWaveformSetGroupSync (nHandle, bEnable, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1632e board.
bEnable
BOOL
Set to TRUE to synchronize the board’s sample clocks.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function will program the board to synchronize clock outputs.  The change takes effect the next time GxAoStandardWaveformEnable is called.  If clocks are synchronized, groups B, C, and D will use Group A’s clock instead of their own internally generated clock.

Example

The following example programs and runs synchronized waveforms from two different groups:

 

SHORT nStatus;

 

GxAoStandardWaveformSetConfiguration(nHandle, GXAO_GROUPA, GXAO_CHANNEL_0, GXAO_1632_WAVEFORM_SINE, 5, 0, 10000, 0, &nStatus);

GxAoStandardWaveformSetChannelOutput(nHandle, GXAO_GROUPA, GXAO_CHANNEL_0, TRUE, &nStatus);

GxAoStandardWaveformSetConfiguration(nHandle, GXAO_GROUPB, GXAO_CHANNEL_0, GXAO_1632_WAVEFORM_SINE, 5, 0, 10000, 0, &nStatus);

GxAoStandardWaveformSetChannelOutput(nHandle, GXAO_GROUPB, GXAO_CHANNEL_0, TRUE, &nStatus);

GxAoStandardWaveformSetGroupSync (nHandle, TRUE, &nStatus);

GxAoStandardWaveformEnable(nHandle, TRUE, &nStatus);

 

See Also

GxAoStandardWaveformEnable, GxAoStandardWaveformSetChannelOutput, GxAoStandardWaveformSetGroupSync, GxAoStandardWaveformSetConfiguration, GxAoGetErrorString