imnotamember / pynetstation Goto Github PK
View Code? Open in Web Editor NEWReworking the pynetstation module for python 2.7 and OpenSesame usage
Reworking the pynetstation module for python 2.7 and OpenSesame usage
I work for MagstimEGI and believe the synch call is not complete. The intention of the synch call was to call the attention command then wait for Net Station to respond, and send your local time immediately after. so
Attention
wait until the response is received
sent time.
I have a customer that is seeing a constant offset in the event markers and this issue could be the cause
We are trying to send triggers from a stimulation computer to NetStation 4.5.1. NetStation is installed on a Mac OSX system. We tried with both Linux and Windows10 stim computers.
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.