GithubHelp home page GithubHelp logo

moan0s / ctrl-localite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pyreiz/ctrl-localite

0.0 0.0 0.0 275 KB

Control Magventure with LocaliteJSON over TCP/IP

License: MIT License

Python 98.92% Makefile 0.81% Shell 0.28%

ctrl-localite's Introduction

MIT license pytest-status Coverage Status Documentation Status

ctrl-localite

This package allows you to stream the current settings and messages from your localite TMS Navigator as LSL stream Additionally, it allows you to control the TMS device connected to the localite software over an api.

This package has been developed using MagVenture TMS devices connected with localite TMS Navigator, and with a beta version of TMS Navigator 4.0.

Documentation

A slightly more extensive documentation can be found on readthedocs.

Installation

    git clone [email protected]:pyreiz/ctrl-localite.git
    cd ctrl-localite
    pip install .

Basic Usage

Usage of the API depends on a running localite-flow Server. Start this server ideally from the command line using e.g. localite-flow --host HOST with HOST the ip-adress of your localite PC.

usage: localite-flow [-h] [--host HOST] [--kill]

optional arguments:
-h, --help   show this help message and exit
--host HOST  The IP-Adress of the localite-PC
--kill

After that, you can use the python API to access the stream and control TMS Navigator remotely.

    from localite.api import Coil
    coil = Coil(0) # initializes the api for coil 1 (of e.g. 2)

    coil.amplitude = 30 # sets the amplitude of this coil to 30% MSO
    coil.trigger() # triggers the coil

    coil.push_marker("Experiment finished") # publishes a marker over LSL

Information Flow

Information flows within the server in a relatively complex fashion. There is an EXT listening to messsages sent over the API, which are queued to be delivered to LOC, where they are sent to the localite PC. Concurrently, LOC is constantly listening for messages from the localite PC and sends them indirectly to MRK, where these messages are pubklished in an LSL Marker StreamOutlet. This allows you to publish additional markers over the API, and additonally supports easy automated logging of any command sent to localite.

flow-diagram

ctrl-localite's People

Contributors

agricolab avatar moan0s 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.