GxAoStandardWaveformSetChannelOutput

Purpose

Sets the output status of a specified channel.

Applied To

GX1632e

Syntax

GxAoStandardWaveformSetChannelOutput (nHandle, nGroup, nChannel, bEnable, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1632e board.
nGroup  
SHORT
Group number:
0.      GXAO_GROUPA
1.      GXAO_GROUPB
2.      GXAO_GROUPC
3.    GXAO_GROUPD
nChannel
SHORT
Channel number:
0.      GXAO_CHANNEL_0
1.      GXAO_CHANNEL_1
2.      GXAO_CHANNEL_2
3.      GXAO_CHANNEL_3
4.      GXAO_CHANNEL_4
5.      GXAO_CHANNEL_5
6.      GXAO_CHANNEL_6
7.    GXAO_CHANNEL_7
bEnable
BOOL
TRUE will enable output for the specified channel.  FALSE will disable output.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function will report whether the channel is programmed to output.  Use GxAoStandardWaveformIsRunning to determine if the board is generating standard waveforms.

Example

The following example programs Group D, Channel 1 to output a waveform and then begins outputting the waveform:

 

SHORT nStatus;

 

GxAoStandardWaveformSetChannelOutput(nHandle, GXAO_GROUPD, GXAO_CHANNEL_1, TRUE, &nStatus);

GxAoStandardWaveformEnable(nHandle, TRUE, &nStatus);

 

See Also

GxAoStandardWaveformGetChannelOutput, GxAoStandardWaveformEnable, GxAoGetErrorString