2.4.9 - WriteAperiodicStreamOut | LabJack
 
« Close

Datasheets and User Guides

App Notes

Software & Driver

 
Friday May 29th 2020
Support: LabJack engineers available through email and chat.
Shipping: We are processing and shipping all orders.
Stock: 51 of 56 products are in stock. More details.
Supply Chain: Minor impacts. More details.

2.4.9 - WriteAperiodicStreamOut

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. 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.