Hello Bernhard,
The buffer should already be associated with a channel when you create the buffer list. Here is a snippet of code I found for Visual C++ and multiple channels:
/* the following configuration assigns the following to the buffer list
elements:
1) buffer pointer that will contain image
2) size of the buffer for buffer element 0
3) command to go to next buffer or loop when the last element is reached
4) channel assigned to this buffer
*/
for (i = 0; i < NUM_RING_BUFFERS; i++)
{
imgCreateBuffer(Sid, FALSE, bufSize, &ImaqBuffers[i]);
imgSetBufferElement(Bid, i, IMG_BUFF_ADDRESS, (uInt32)ImaqBuffers[i]);
imgSetBufferElement(Bid, i, IMG_BUFF_SIZE, bufSize);
bufCmd = (i == (NUM_RING_BUFFERS - 1)) ? IMG_CMD_LOOP : IMG_CMD_NEXT;
imgSetBufferElement(Bid, i, IMG_BUFF_COMMAND, bufCmd);
imgSetBufferElement(Bid, i, IMG_BUFF_CHANNEL, i);
}
I hope this helped you.
Philip W.
Applications Engineer