Giter VIP home page Giter VIP logo

pynetstation-plug-in's Introduction

License: MIT DOI

Pynetstation-Plug-In

Plug-in for OpenSesame to use EGI's Netstation EEG software

This plug-in includes 8 items:

  • pynetstation source files (in folder egi) ——These files are almost identical to the ones available at https://code.google.com/p/pynetstation/ except a correction in the padding function and editing of the fake.py to make better use of a fake Netstation connection in the OpenSesame environment
  • pynetstation initializer ——This should be used once in any experiment(will throw an error if used more than that) if you want to create multiple Netstation recordings in a single experiment use the pynetstation reinit item after you end any sessions in your experiment. Really cool: set your threading to Faker! and you can try out your experiment and get feedback without actually being connected to Netstation, really useful if you are like me and don’t have an EGI set up at home to work with and would rather not live in your lab space.
  • pynetstation start recording ——Pretty straight forward, presses record in Netstation
  • pynetstation pause recording ——Pretty straight forward, presses pause in Netstation
  • pynetstation begin trials ——This tells Netstation to synchronize its clock with Opensesame, which is crucial during experiments as the clock drifts over time. Make sure this is within the loop you want to record events from.
  • pynetstation send tags ——Sends Netstation events from OpenSesame, fill in the blanks with your information for your event.
  • pynetstation end ——Pretty straight forward, saves and closes the Netstation session
  • pynetstation re-initializer ——Use this after you use ‘pynetstation end’ in your experiment to reconnect to Netstation. Just make sure you open a new recording session in Netstation before running this, or you’ll crash the experiment.

pynetstation-plug-in's People

Contributors

imnotamember avatar

Stargazers

 avatar Mauricio Alejandro Toro Espejo avatar Sebastiaan Mathot avatar

Watchers

 avatar  avatar

Forkers

mattmoo

pynetstation-plug-in's Issues

no module named 'egi.fake'

The 'egi' folder is in both "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins" and "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\pynetstation_init", where "pynetstation_init.py" calls "import egi.fake as egi"

Unclear why egi.fake was not found.

I use OpenSesame version3.3.9 and Python 3.8.3

Thank you.

Trigger from Windows 10 computer to NetStation running on Mac OSX

We are trying to send triggers from a stimulation computer to NetStation 4.5.1. NetStation is installed on a Mac OSX system and the stim computer is running under Windows 10.
The two computers are connected with an Ethernet cable.
We are able to send the trigger using this script, but a delay of around 150ms (we didn't measured it exactly) constantly occurs. The delay seems variable as well. We observed the delay by comparing the apparition of the event in the log window of NetStation with the 'print' in Python
We will try to perform this test locally (with only one computer) to better tackle the problem
Any advice would be greatly appreciated.

import time
import numpy as np
import copy
import egi.simple as egi

​ns = egi.Netstation()
ns.connect('10.10.10.122', 55513)
ns.BeginSession()

​
def trigger_write(code='testev'):
    ns.sync()
    ns.send_event(code)
    return

for ii in range(50):
    trigger_write(str(ii))
    print('tip')
    time.sleep(1)

missing parenthesis in call to "print"

missing parenthesis in call to "print". Did you mean
print("egi: stopping ...)?" (threaded.py, line 328)

I tried to fix this by adding parentheses to print. Nevertheless, it didn't work.
Any ideas?

Thank you.

EGI Technical manuals

Hi Nomember,

I would like to ask you a question about the EGI reference manualse. We are developing a piece of code for sending timestamps from arduino to NS. However, there is a lack of technical description of the protocol on the EGI sites and on the internet. In the pynetstation plugin, there is a reference to technical manuals:
"EGI Hardware Technical Manual" of Dec 21 2006,
Chapter 7 and Appendix G
One can also see "EGI Systems Technical Manual", Ch. 6 and App. G,
or "EGI System 200 Technical Manual" -- Ch. 6 and Appendix E,
( though the last one seems to be a little bit more incomplete than the other ones ) .

Do you have an idea where we could get the manuals?

Thank you,
Vlasta

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.