Git Product home page Git Product logo

key_stroke_lsl's Introduction

key_stroke_LSL

Tiny matlab script to register a keystroke in the keyboard and send a marker to the LabStreamingLayer (LSL) Lab Recorder.

Description

The aim of this script is to enable synchronisation of data recordings across multiple devices. Although, the Lab Streaming Layer (LSL) framework enables time-synchronisation, it requires acess to the api of each device. Unfortunately, some physiological measurement hardware do not provide direct access to their API.

So this, matlab script provides a simple workaround: it listens for the key press and if it detects a key code (currently F4 but you can change it) it will send a marker to the LabStreamingLayer (LSL) Lab Recorder.

We plan to use this to support an EDA (skin conductance) experiment, to register a marker in the Biopac Acknowledge software, and concurently send a marker in the LSL stream. Therefore, we will have to manually to import the rest of the markers for EDA in post-processing.

The rest of the data collection uses PsychoPy3 for stimulus presentation and the LSL Lab Recorder for data aquisition.

Prerequisites

The script relies on having a working installation of:

Alternative solutions:

Since I do not yet have access to the Biopac, I have not tested this solution: https://github.com/esdalmaijer/MPyDev

key_stroke_lsl's People

Contributors

pmavros avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ipsych

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.