Node Examples

Node Installation

See the getting started repo for full scripts. We used Node.js 10.15.3 for these examples. If you don't use LSL, you can probably use versions 14.15.1+.

Install the dependencies:

npm install

Script Examples

This script receives an LSL API stream and prints it to console.

node lsl_receive.js -n PetalStream_blink
node lsl_receive.js -n PetalStream_eye
node lsl_receive.js -n PetalStream_bandpower
node lsl_receive.js -n PetalStream_artifact_detect
node lsl_receive.js -n PetalStream_metrics

Last updated