Returns the group channels used for arbitrary waveform generation and the waveform size.
GX1649, GX1649-1, GX1632e
GxAoArbGetGroupChannels (nHandle, nGroup, pwChannels, pdwWaveformSize, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to an initialized board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. 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. |
All channels configured to generate waveform have the size waveform length.
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”);
GxAoArbSetGroupChannels, GxAoArbReadWaveform, GxAoGetErrorString