Returns the group streaming status.
GX1649-1
GxAoArbGetGroupStreamingStatus (nHandle, nGroup, pwStatus, pwCount, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1649 board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
pwStatus |
PWORD |
Returns the a bit field that contains the status of the ARB during streaming operation:Bit 0: The streaming FIFO is half emptyBit 1: The streaming FIFO is emptyBit 2: The streaming FIFO is full |
pwCount |
PWORD |
Returns the total number of samples currently stored in the streaming FIFO. (0 to 1023) |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the status of the streaming FIFO capacity. This can be used to determine when to write to the FIFO when streaming using the polling method (not using interrupts).
The following example writes to the streaming FIFO when the FIFO sample count is below 500:
SHORT nStatus;
WORD wStatus, wCount;
DOUBLE dWaveform[500];
BOOL bRun=TRUE;
while (bRun)
{
GxAoArbGetGroupStreamingStatus(nHandle, GXAO_GROUPB, &wStatus, &wCount, &nStatus);
if (wCount<500)
GxAoArbWriteStreaming(nHandle, GXAO_GROUPB, dWaveform, 500, GXAO_1649_WAVEFORM_TYPE_DOUBLE, &nStatus);
}
GxAoArbEnableGroupStreaming, GxAoArbWriteStreaming, GxAoGetErrorString