GxAoArbGetGroupChannels

Purpose

Returns the group channels used for arbitrary waveform generation and the waveform size.

Applies

GX1649, GX1649-1, GX1632e

Syntax

GxAoArbGetGroupChannels (nHandle, nGroup, pwChannels, pdwWaveformSize, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to an initialized board.
nGroup
SHORT
Group number:
0.   GXAO_GROUPA
1.   GXAO_GROUPB
2.   GXAO_GROUPC
3.   GXAO_GROUPD
pwChannels
PWORD
Returned a bit mask where each bit corresponds to a channel (bit 0 is channel 0, bit 15 channel 15). Bits that are set to 1 indicate that the corresponding channels are set to generate waveform. Bits that are set to 0 indicate a static output channel.
pdwWaveformSize
PDWORD
Returned waveform size.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

All channels configured to generate waveform have the size waveform length.

Example

The following example checks if channel 2 in group B is static

 

SHORT nStatus;

WORD  wChannels;

DWORD dwLength;

 

GxAoArbGetGroupChannels(nHandle, GXAO_GROUPB, &wChannels, &dwLength, &nStatus);

if (wChannels & 0x4)=-0) printf(“Channel 2 is static”);

 

See Also

GxAoArbSetGroupChannels, GxAoArbReadWaveform, GxAoGetErrorString