Having issue consuming openbci_lsl data from liblsl_matlab

mizanur36mizanur36 Dallas, TX
Running openbciPython_LSL and streaming cyton board data. Able to consume using pylsl. But when try to consume using liblsl_matlab on MAC, unable to receive any data. It waits on data in while loop







p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #000000; background-color: #ffffff}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Menlo; color: #000000; background-color: #ffffff; min-height: 15.0px}
span.s1 {font-variant-ligatures: no-common-ligatures}

-------INSTANTIATING BOARD-------

Connecting to V3 at port /dev/cu.usbserial-DM00CWEQ

Serial established...

OpenBCI V3 8-16 channel

On Board ADS1299 Device ID: 0x3E

LIS3DH Device ID: 0x33

Firmware: v3.1.1

$$$

--------------------------------------

LSL Configuration: 

  Stream 1: 

      Name: openbci_eeg 

      Type: EEG 

      Channel Count: 8

      Sampling Rate: 250.0

      Channel Format: float32 

      Source Id: openbci_eeg_id214 

  Stream 2: 

      Name: openbci_aux 

      Type: AUX 

      Channel Count: 3

      Sampling Rate: 250.0

      Channel Format: float32 

      Source Id: openbci_aux_id214 


Electrode Location Montage:

['Fp1', 'Fp2', 'C3', 'C4', 'T5', 'T6', 'O1', 'O2']

---------------------------------------


--------------INFO---------------

Commands: 

    Type "/start" to stream to LSL 

    Type "/stop" to stop stream.

    Type "/exit" to disconnect the board. 

Advanced command map available at http://docs.openbci.com


-------------BEGIN---------------


--> /start

Streaming data...


--> 

--> /stop

--> /start

Streaming data...


--> 


In Matlab:


>> ReceiveData
Loading the library...
Resolving an EEG stream...

When I kill the program, I get below error

In ReceiveData (line 11)
    result = lsl_resolve_byprop(lib,'type','EEG'); end

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Mizan, hi.

    Which OpenBCI Github repositories are you using? You should be using OpenBCI_Python to create the LSL stream, and then consume in Matlab with the SCCN example code,


    The OpenBCI_Matlab and OpenBCI_LSL repos are not as up to date as OpenBCI_Python for generating LSL. And even deprecated.

    Regards,

    William
  • mizanur36mizanur36 Dallas, TX
    Hi,

    I am using openbciPython_LSL that I downloaded from github. Looks like it is generating LSL stream. I tested with pylsl "ReceveData.py" and I get the LSL data. But its when I try to consume the LSL data from matlab it doesn't get anything. Instead I get below which I mentioned.

    >> ReceiveData
    Loading the library...
    Resolving an EEG stream...

    When I kill the program, I get below error

    In ReceiveData (line 11)
        result = lsl_resolve_byprop(lib,'type','EEG'); end
  • wjcroftwjcroft Mount Shasta, CA
    Solution from @mizanur36, posted on other thread,

    It appears the issue was the liblsl64.dylib version. I have downloaded a newer version from https://github.com/Epist/bci_focus/blob/master/Server/bin/liblsl64.dylib link and now I can see LSL stream in MATLAB
Sign In or Register to comment.