How do you actually get live data as a number from a ganglion board?

edited July 2019 in Ganglion
All,

My team and I have been working with openBCI for a few days now. We were able to get the GUI working and our data to display there. However, we are not able to read data live from from the GUI in order to have the data affect a program we are writing. 

We have tried using the openBCI python LSL ( https://github.com/OpenBCI/OpenBCI_LSL ), but it does not work because we are on Windows 7.
We have tried using the NodeJs SDK (https://github.com/OpenBCI/OpenBCI_NodeJS_Ganglion), but it always responds with (Error: No compatible USB Bluetooth 4.0 device found!). This doesn't make sense to us since we're running the GUI without problem and getting data back. 

We have a version of the labstreaminglayer/liblsl (in Java) running and one of the LSLs in C++ running, but it seems to just return random data back regardless of whether we have a network stream started or even have our board plugged in.


Can anybody help us just get this stuff so we can get data off of it? This is the equipment we are using: 


Comments

  • wjcroftwjcroft Mount Shasta, CA
    Modus, hi.

    Have you tried using OpenViBE to display your Ganglion LSL stream (via GUI Networking widget)? This would confirm that the LSL stream from the GUI is ok. And possibly imply something amiss with your LSL stream receiving program.

    Richard @retiutut, don't we have a link with an example of GUI to OpenViBE via LSL? Unfortunately the docs tutorial for OpenViBE is geared to Cyton.

    Regards,

    William
  • @wjcroft

    I haven't tried OpenViBE, but I don't think anything is wrong with the stream. 

    Do you guys have a tutorial on how to use the Networking Widget? It seems pretty straight forward but maybe i'm missing something. Also, a tutorial on how to use labstreaminglayer/liblsl (in Java) would be very helpful, as I see tons of methods without any instruction on how to use them. The samples just seem to randomly produce numbers. I'm playing around with it and trying to get it to work, but it's getting quite late and my team has still made no progress.  
  • when I run method calls in liblsl-Java, I get the following output:

     
            System.out.println("info: " + inlet.info().toString()); reads : info: edu.ucsd.sccn.LSL$StreamInfo@6f496d9f

            System.out.println("channel count: " + inlet.info().channel_count()); reads: channel count: 4

            System.out.println("name: " + inlet.info().name()); reads: hostname: obci_eeg1


    The channel count and hostname are not reflecting the settings I'm configuring in the OpenBCI Gui. 
            
  • UPDATE: We've been able to identify the appropriate stream name (using LSL.resolve_stream("name", "test");), but it only returns 8 rows of 0's. 
  • retiututretiutut Louisiana, USA
    ""Do you guys have a tutorial on how to use the Networking Widget? It seems pretty straight forward but maybe i'm missing something.""

    @ModusPwnens You make a great point, and I've just added a requirement to this issue: https://github.com/OpenBCI/Docs/issues/211

    Hope to update the Docs to resolve this issue soon!
Sign In or Register to comment.