Syntax
LJM_ERROR_RETURN LJM_WriteAperiodicStreamOut(
int Handle,
int StreamOutIndex,
int NumValues,
const double * aWriteData
int * LJMBufferStatus)
Parameters
- Handle[in]
- A device handle. The handle is a connection ID for an active device. Generate a handle with LJM_Open or LJM_OpenS.
- StreamOutIndex[in]
- The number assigned to this stream-out. Must be a number between 0 and 3 (cannot stream-out more than 4 channels at once).
- NumValues[in]
- The number of values to write to the stream-out buffer.
- aWriteData[in]
- The data array to be written to the stream-out buffer.
- LJMBufferStatus[out]
- the number of samples that can be written to the stream-out queue.
Returns
LJM errorcodes or 0 for no error.
Remarks
See LJM_InitializeAperiodicStreamOut for usage.
Configuration
This function writes to the following registers. When using LJM_WriteAperiodicStreamOut for a given stream index, they should not be set manually:
- STREAM_OUT#(0:3)_BUFFER_U16
- STREAM_OUT#(0:3)_SET_LOOP
Example
See LJM_InitializeAperiodicStreamOut for an example.