When it crashes, do you mean that you get an error or just a grey screen which you can’t exit? If the latter that’s probably that ioHub has taken control of the PsychoPy window, but hasn’t initialised its keyboard successfully, so can’t recognise the Escape key to close it…
Using the same setup as you have here in Builder, the following code is generated:
# Setup eyetracking
ioDevice = 'eyetracker.hw.sr_research.eyelink.EyeTracker'
ioConfig = {
ioDevice: {
'name': 'tracker',
'model_name': 'EYELINK 1000 DESKTOP',
'simulation_mode': False,
'network_settings': '100.1.1.1',
'default_native_data_file_name': 'EXPFILE',
'runtime_settings': {
'sampling_rate': 500.0,
'track_eyes': 'BOTH',
'sample_filtering': {
'sample_filtering': 'FILTER_LEVEL_OFF',
'elLiveFiltering': 'FILTER_LEVEL_2',
},
'vog_settings': {
'pupil_measure_types': 'PUPIL_AREA',
'tracking_mode': 'PUPIL_CR_TRACKING',
'pupil_center_algorithm': 'ELLIPSE_FIT',
}
}
}
}
ioSession = '1'
if 'session' in expInfo:
ioSession = str(expInfo['session'])
ioServer = io.launchHubServer(window=win, **ioConfig)
eyetracker = ioServer.getDevice('tracker')
# -------Run Routine 'calibration'-------
# define target for calibration
calibrationTarget = visual.TargetStim(win,
name='calibrationTarget',
radius=0.01, fillColor='', borderColor='black', lineWidth=2.0,
innerRadius=0.0035, innerFillColor='green', innerBorderColor='black', innerLineWidth=2.0,
colorSpace='rgb', units=None
)
# define parameters for calibration
calibration = hardware.eyetracker.EyetrackerCalibration(win,
eyetracker, calibrationTarget,
units=None, colorSpace='rgb',
progressMode='time', targetDur=1.5, expandScale=1.5,
targetLayout='NINE_POINTS', randomisePos=True,
movementAnimation=True, targetDelay=1.0
)
# run calibration
calibration.run()
# clear any keypresses from during calibration so they don't interfere with the experiment
defaultKeyboard.clearEvents()
I’m guessing the problem is missing parameters in iohub_confg
- what happens if you copy the dict used here in its place?