Gets the output status of a specified channel.
Applied To
GX1632e
GxAoStandardWaveformGetChannelOutput (nHandle, nGroup, nChannel, pbEnable, 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 |
pbEnable |
PBOOL |
Return TRUE if output is enabled for the specified channel. |
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 determines whether Group A, Channel 7 is output enabled:
SHORT nStatus;
BOOL bEnable;
GxAoStandardWaveformGetChannelOutput(nHandle, GXAO_GROUPA, GXAO_CHANNEL_7, &bEnable, &nStatus);
GxAoStandardWaveformSetChannelOutput, GxAoStandardWaveformIsRunning, GxAoGetErrorString