Hello everybody! I need to connect an eye tracker to a psychoзн using the iohub library. Tell me how can I do this? I tried the following code from the Internet:
from psychopy.iohub import launchHubServer
from psychopy.core import getTime, wait
from psychopy import core, visual
import psychopy.iohub as io
'''config'''
tracker = io.devices.tracker
display = io.getDevice('display')
eyetracker.hw.sr_research.eyelink
tracker_config = {'eyetracker.hw.gazepoint.gp3.EyeTracker':
{'name': 'tracker', 'device_timer': {'interval': 0.005}}}
'''Config'''
iohub_config = {'eyetracker.hw.gazepoint.gp3.EyeTracker':
{'name': 'tracker', 'device_timer': {'interval': 0.005}}}
'''Calibration'''
r = tracker.runSetupProcedure()
But in the end I get the following error:
AttributeError: module ‘psychopy.iohub.devices’ has no attribute ‘tracker’
OS: Windows 10
Please tell me what I’m doing wrong! I would be very grateful for any help!