Skip to content

Latest commit

 

History

History
 
 

ShimmerLSL: Streaming Shimmer Data with LabRecorder

This guide outlines how to stream data from your Shimmer device using LSL (Lab Streaming Layer) and record it with LabRecorder. liblsl-1.13.0-Win64 (https://github.com/sccn/liblsl/releases/tag/1.13.0) was used for the liblsl64.dll.

Update btComports:

  • Open the SendData.java file.

  • Replace "COM10" and "COM8" with the actual COM ports where your Shimmer devices are connected. Ensure each COM port matches a unique device.

Download LabRecorder:

Run SendData.java:

  • Compile and run the program SendData.java.
  • Make sure the devices is turned on and click Connect All Devices when the program started.
  • Please enable the respective sensors first by clicking the Configure Sensors before starting the stream.
  • Click Start Streaming button on the program.

Start LabRecorder:

  • Open the downloaded LabRecorder.exe from the extracted path.

Update Stream List:

  • If no streams appear in the LabRecorder list, click the "Update" button.

Select Stream:

  • Locate the stream corresponding to the COM port you used in btComports. It should be named something like "SendData_Device_Shimmer_Name_SensorType".
  • Click the checkbox next to the desired stream to select it.
  • Modality (%m) can be changed for different folder name.

Start Recording:

  • Click the "Start" button in LabRecorder to begin recording the streaming data.
  • Make sure the timer has started on the bottom of the program.

Stop Recording:

  • Once you're finished recording, click the "Stop" button.

Recorded Data Location:

  • By default, LabRecorder saves recorded data files in XDF format. The location depends on your operating system: Windows: The file will be saved in "C:\Users\X\Documents\CurrentStudy\sub-P001\ses-S001"Modality (%m)"" (replace "X" with your username, "Modality (%m)" by default is "eeg" and can be referred to step 3 in Select Stream).

Download SigViewer:

Visualize Streamed Data:

  • In SigViewer, go to File > Open and navigate to the Recorded Data Location.
  • The recorded data stream will be visualized on the SigViewer.