Giter VIP home page Giter VIP logo

nodelsl's Introduction

##nodeLSL - Node Bridge for LabStreamingLayer

###Is this implementation for you? It is, if you:

  • Have built node.js apps before
  • Want to use a LSL-compatible device with node.js
  • Want the implementation which is Java-lite and node-heavy (yet, async and non-blocking)
  • Are a Java beginner/non-expert (some instructions below are written with non-experts in mind)
  • At its core, nodelslserver uses node-java and a custom LSLWrapper class to port the functionality provided by LSL (the important bits?) and forwards the LSL Stream as json packets over websockets using promises to allow non-blocking async operation.

###Install instructions:

See IntallStep.md

###Usage

  1. nodelslserver.js : Accepts command line arguments, run with -help flag for more details. It can record an incoming stream for later reuse by nodelslplayer.js
  2. A basic bridge configuration consists of:
  • <Your LSL EEG Device> streaming EEG or Quality or Markers streams
  • nodelslserver.js recording and transmitting these streams over Websockets on Port 1337
  • Visualizer.html available on Port 3000 or directly loaded from folder connected to ws:1337
  1. nodelslserver.js can also record streams to plain text files. nodelslplayer.js can replay one stream per instance and replace the LSL EEG Device in the basic configuration above. It also accepts command line arguments e.g. node nodelslplayer -re -n 8 -t 250 -file Sample.txt sends the contents of Sample.txt at 250Hz, 8 channels as EEG data. (Sample.txt should contain tab-separated or comma-separated float values, 8 per line)

nodelsl's People

Contributors

abek42 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.