GxAoStandardWaveformGetChannelOutput

Purpose

Gets the output status of a specified channel.

Applied To

GX1632e

Syntax

GxAoStandardWaveformGetChannelOutput (nHandle, nGroup, nChannel, pbEnable, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1632e board.
nGroup
SHORT
Group number:
0.      GXAO_GROUPA
1.      GXAO_GROUPB
2.      GXAO_GROUPC
3.    GXAO_GROUPD
nChannel
SHORT
Channel number:
0.      GXAO_CHANNEL_0
1.      GXAO_CHANNEL_1
2.      GXAO_CHANNEL_2
3.      GXAO_CHANNEL_3
4.      GXAO_CHANNEL_4
5.      GXAO_CHANNEL_5
6.      GXAO_CHANNEL_6
7.    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.

Comments

This function will report whether the channel is programmed to output.  Use GxAoStandardWaveformIsRunning to determine if the board is generating standard waveforms.

Example

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);

 

See Also

GxAoStandardWaveformSetChannelOutput, GxAoStandardWaveformIsRunning, GxAoGetErrorString