Spectrum Brands MC.31XX 用户手册

下载
页码 102
FIFO Mode
Programming
(c) Spectrum GmbH
57
The following example shows how to sort the channel data when using 4 channels in FIFO mode:
Sample format
The sample format in FIFO mode does not differ from the one of the standard (non FIFO) mode. Please refer to the relating passage concerning 
the sample format in the standard acquisition chapter.
for (i = 0; i < (lBufferSizeInSamples / 4); i++)
    {
    Data[0][i] = FIFOBuffer[i * 4 + 0];
    Data[1][i] = FIFOBuffer[i * 4 + 2];
    Data[2][i] = FIFOBuffer[i * 4 + 1];
    Data[3][i] = FIFOBuffer[i * 4 + 3];
    }