2.4 - Stream Functions | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver


2.4 - Stream Functions

To stream an unlimited number of scans from a device:

  1. Start a stream using LJM_eStartStream
  2. In a loop, read from the device stream using LJM_eStreamRead
  3. End the stream using LJM_eStreamStop

To stream a finite number of scans, use LJM_StreamBurst:

  • LJM_StreamBurst is a convenience function that internally performs LJM_eStreamStart, LJM_eStreamRead, and LJM_eStreamStop.

To check the status of the operating system's TCP receive buffer, use LJM_GetStreamTCPReceiveBufferStatus.

To output a periodic waveform from the device, use LJM_PeriodicStreamOut.

To output an irregular waveform, use LJM_InitializeAperiodicStreamOut and LJM_WriteAperiodicStreamOut.


    Is it possible to stream data out using LJM library (e.g. with LabView)? If so, could you provide a simple example e.g. how to stream out a square wave with LabView (from DAC0)? Thank you in advance.

    Yes, you can stream out certain outputs such as the DAC lines using the LJM library. We document that here in the T7 datasheet:


    There is a general stream out example section on that page. It demonstrates what names/registers to write to for configuration. As for code examples, we currently only have a stream out example (o_stream_run) for C/C++ and Python. It looks like our LabVIEW examples currently do not have an example like this but we will look into adding one. All LJM code example downloads can be found here:


    There is now a stream example with stream-out in the LabVIEW_LJM archive.