GxAoStandardWaveformSetChannelsOutput

Purpose

Sets the output status of all channels.

Applied To

GX1632e

Syntax

GxAoStandardWaveformSetChannelsOutput (nHandle, dwEnable, pnStatus)

Parameters

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.

Comments

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.

Example

The following example sets the first channel in each group to enabled:

 

SHORT nStatus;

 

GxAoStandardWaveformSetChannelsOutput(nHandle, 0x1111, &nStatus);

 

See Also

GxAoStandardWaveformGetChannelsOutput, GxAoGetErrorString