OpenViBE forum

The OpenViBE community
It is currently Fri Oct 19, 2018 6:18 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jan 21, 2016 10:30 am 
Offline

Joined: Thu Jan 21, 2016 10:10 am
Posts: 1
Hi everyone,

I have a running PsychoPy implementation of a presentation while Eye Tracker data is collected (Tobii TX300). Now, I also want to add EEG to the setup (TMSi Mobita) and therefore thought about openVibe. What would you suggest how to combine all components to be able to synchronise them in the end?

1) The TMSi Mobita starts each recording at time 0, so I cannot use normal log files from two processes to synchronise. Is there a way to modify the openvibe part such that it uses system time for logging? Then I could merge it with the result from a separate thread running the PsychoPy part.

2) Then, I also thought I could simply put the PsychoPy code into a python box and send stimulations to the acquisition server on stimulus onset. However, PsychoPy does not run from within the box (altough it does outside openvibe). It seems that it cannot find wxPython. Do you know what could prevent a library from finding something within openvibe that it does find on its own?

3) Probably we could also use hardware triggers, but we would have to buy them first... I'm happy for any suggestion here that would get us to a software solution :)

Thanks!
Brina


edit: here are the log messages for the case when it fails to load wxPython although it is found if I execute the same script outside openvibe.

[ INF ] Initialization took 663 ms
[ INF ] Importing scenario...
[ INF ] Adding configuration file(s) [C:/Program Files (x86)/openvibe//share/openvibe/kernel/openvibe-delayed.conf]
[ INF ] Adding configuration file(s) [C:/Users/User/AppData/Roaming/openvibe/openvibe-delayed.conf]
[ INF ] Adding configuration file(s) [C:/Users/User/Documents/myfolder/openVibe/scenario.conf]
[ INF ] At time 0.000 sec <Box algorithm::(0x0000240d, 0x00005d44) aka Python scripting> Discovered Python is 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] (win32)
[ INF ] At time 0.000 sec <Box algorithm::(0x0000240d, 0x00005d44) aka Python scripting> Python Interpreter initialized
[ ERROR ] At time 0.000 sec <Box algorithm::(0x0000240d, 0x00005d44) aka Python scripting> Failed to run [C:/Users/User/Documents/myfolder/code/Experiment/psychoPyAnimation.py], result = -1
[ INF ] At time 0.000 sec <Box algorithm::(0x0000240d, 0x00005d44) aka Python scripting> executing script file
error
Traceback (most recent call last):
File "C:/Program Files (x86)/openvibe//share/openvibe/plugins/python/openvibe.py", line 30, in execfileHandlingException
execfile(filename, maindictionary)
File "C:/Users/User/Documents/myfolder/code/Experiment/psychoPyAnimation.py", line 6, in <module>
from psychopy import logging, monitors, core, event, gui
File "C:\Python27\lib\site-packages\psychopy-1.83.3-py2.7.egg\psychopy\gui.py", line 8, in <module>
import wx
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\__init__.py", line 45, in <module>
from wx._core import *
File "C:\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 4, in <module>
import _core_
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
[translation to English: the module cannot be found.]

[WARNING] Box algorithm <Python scripting> has been deactivated because initialize() function returned error


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 27, 2016 9:29 am 
Offline

Joined: Fri Nov 14, 2014 1:06 pm
Posts: 40
Hi
Synchronizing OpenVibe with an external application is not an easy task...
Triggers allows to insert event markers into the signal and are commonly used to synchronize OpenVibe with external applications. However it is not always easy to have accurate triggers.
Hardware tagging provides the most accurate way to insert event markers into the signal with an accuracy of a few milliseconds depending on the sampling rate.
There exists a software solution called software tagging, documented on this webpage: http://openvibe.inria.fr/send-stimulati ... on-server/
But beware that it not accurate in time unfortunately... We are currently developing a more accurate software tagging solution based on TCP that should be available for the next release.
If you really need an accurate software tagging solution and that you cannot wait for the next release, let us know, we might be able to provide you this new software tagging solution under development.
Best regards


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.