Skip to main content
Skip table of contents

WriteAperiodicStreamOut [LJM User's Guide]

Requires LJM 1.2100 or later.

Writes data to a buffer for the aperiodic stream-out at the specified index.This function can be called before starting stream (after calling LJM_InitializeAperiodicStreamOut) to preemptively queue up data for the device stream out buffer.

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. See the Stream Out section of the T-series datasheet for more information.

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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.