Gets the output status of all channels.
Applied To
GX1632e
GxAoStandardWaveformGetChannelsOutput (nHandle, pdwEnable, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
pdwEnable |
DWORD |
A bitmask where each bit represents the state of one of the analog output channels. If a bit is set to 1, the channels output is enabled. If 0, output is disabled.The LSB represents Group A, Channel 0 and the MSB represents Group C, Channel 7. |
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 returns the output status of all channels:
SHORT nStatus;
DWORD dwEnableMask;
GxAoStandardWaveformGetChannelsOutput(nHandle, &dwEnableMask, &nStatus);