Sets the output status of all channels.
Applied To
GX1632e
GxAoStandardWaveformSetChannelsOutput (nHandle, dwEnable, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
dwEnable |
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 program a channel to output, but it does not change the state of the board. Use GxAoStandardWaveformEnable to start and stop waveform generation.
The following example sets the first channel in each group to enabled:
SHORT nStatus;
GxAoStandardWaveformSetChannelsOutput(nHandle, 0x1111, &nStatus);