Sets the output status of a specified channel.
Applied To
GX1632e
GxAoStandardWaveformSetChannelOutput (nHandle, nGroup, nChannel, bEnable, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
nChannel |
SHORT |
Channel number:0. GXAO_CHANNEL_01. GXAO_CHANNEL_12. GXAO_CHANNEL_23. GXAO_CHANNEL_34. GXAO_CHANNEL_45. GXAO_CHANNEL_56. GXAO_CHANNEL_67. 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. |
This function will report whether the channel is programmed to output. Use GxAoStandardWaveformIsRunning to determine if the board is generating standard waveforms.
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);
GxAoStandardWaveformGetChannelOutput, GxAoStandardWaveformEnable, GxAoGetErrorString