Instruction manual

#define CHNO 4 // number of channels
long pStart[CHNO];
pStart[0] = 0;
pStart[1] = 2 * SEQ_LEN/4;
pStart[2] = 3 * SEQ_LEN/4;
pStart[3] = 4 * SEQ_LEN/4;
long pLength[CHNO];
pLength[0] = SEQ_LEN/4;
pLength[1] = SEQ_LEN/4;
pLength[2] = SEQ_LEN/4;
pLength[3] = SEQ_LEN/4;
el_AcquireEx(BoardId, EL_SNAP, 0, pStart, pLength, CHNO, 0);
SEE ALSO: el_Acquire
5.2.4. el_AssignBuffer
void **
el_AssignBuffer ( long BoardId, long ChannelNumber, long BufferNo, double
ScaleX, double ScaleY, long Reserved1, long Reserved2 );
Assigns a memory buffer to a DMA channel. The scaling factors are fixed to 1.0 .
PARAMETERS:
BoardId : board ID returned by el_OpenHW
ChannelNumber : DMA channel (0,1,2,3)
BufferNo :Buffer number returned by el_CreateMemBuffer
ScaleX : Scaling factor X-size 1.0
ScaleY : Scaling factor Y-size 1.0
Reserved1 : reserved for future use
Reserved2 : reserved for future use
RETURN VALUE:
Pointer to pointer array if OK
0 if ERROR. See el_GetErrorCode for details.
Description:
SEE ALSO: el_CreateMemBuffer
EXAMPLE:
Allocate four buffers, each one for the channels for
//
// in our sample we will suppose only one frame sequence
Chapter 5. Programmers
Reference
56