OS: Win 10
PsychoPy version: v2020.1.3
What am I trying to achieve:
I am trying to integrate Tobii Eyex eye-tracker and Psychopy, but the calibration process does not work as expected.
I initialized the experiment with this block of code in “Begin experiment”, like the documentation indicates:
from psychopy.iohub import launchHubServer
from psychopy.core import getTime, wait
iohub_config = {‘eyetracker.hw.tobii.EyeTracker’:
- {‘name’: ‘tracker’, ‘runtime_settings’: {‘sampling_rate’: 120}}}*
*io = launchHubServer(*iohub_config)
# Get the eye tracker device.
tracker = io.devices.tracker
# run eyetracker calibration
r = tracker.runSetupProcedure()
# Check for and print current eye position every 100 msec.
stime = getTime()
while getTime()-stime < 5.0:
- print(tracker.getPosition())*
- wait(0.1)*
tracker.setRecordingState(False)
# Stop the ioHub Server
io.quit()
Unfortunately, does not works. The calibration screen appears but does not offer the calibration process when i press ‘space’ and the stdout was:
Experiment ended.
Generating PsychoPy script…
########### Running: C:\Users\Censipam 03\Music\untitled_lastrun.py ############
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
ioHub Server Process Completed With Code: 0
0.8405 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
3.6093 WARNING User requested fullscreen with size [1024 768], but screen is actually [1440, 900]. Using actual size
Experiment ended.
What did i try to make it work?:
I’ve tried to manage different python versions and different psychopy3 versions, but nothing seems to work