Lab Streaming Layer

From biophysics
Revision as of 11:00, 1 April 2026 by Lof (talk | contribs) (Created page with "==Introduction== Lab Streaming Layer (LSL) is an open‑source software framework designed to make it easy to send, receive, and synchronize data streams in real time. It acts like a universal “data highway” that different devices and programs can use to communicate with each other. LSL is commonly used in research settings—especially in neuroscience, psychology, and human‑computer interaction—to collect data from multiple sources at the same time. For example...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Lab Streaming Layer (LSL) is an open‑source software framework designed to make it easy to send, receive, and synchronize data streams in real time. It acts like a universal “data highway” that different devices and programs can use to communicate with each other.

LSL is commonly used in research settings—especially in neuroscience, psychology, and human‑computer interaction—to collect data from multiple sources at the same time. For example, you can stream EEG signals, motion‑tracking data, eye‑tracking data, and experiment events through LSL and keep them perfectly time‑aligned. It is typically used to: - Connect different sensors and software tools without worrying about compatibility - Record synchronized data from multiple devices - Build experiments that require real‑time data exchange - Store all incoming data in a single, well‑organized format

LSL in Matlab

Generic lsl functions can be found in the biofysica toolbox.

  • Each lsl-device can have one or more lsl-streams.
  • An lsl-stream is identified by a type and a name.
  • The function lsl_resolver checks if it can find the requested lslStream on the intranet.
  • When the stream is found you must add it to the session.
  • The session controls the actual data-acquisition with start and stop.
  • The data is read from the stream.