psychopy.org | Reference | Downloads | Github

Running stroop_eyetracking demo

OS (e.g. Win10): Windows 7 professional
PsychoPy version (e.g. 1.84.x): 1.842

Hi,

I’m trying to do an experiment that combines eye tracker.
For this reason, I tried to load and run the “stroop_eyetracking demo” for inspiration.
In the README file is written "Please edit the config file to set the display parameters and eye tracking parameters so they are valid for your setup."
I’m using SMI iView system so I edited the “SMI_iview_std.yaml” file but when I’m trying to run the experiment I get an Error:

“Running: C:\Program Files (x86)\PsychoPy2\PsychoPy2 Demos\iohub\stroop_eyetracking\stroop_lastrun.py
pyo version 0.8.0 (uses single precision)
!! Error starting ioHub: Error starting ioHub server: ioHub startup timed out. iohub Server startup Failed. Exiting…
Error during device creation …
<class ‘yaml.scanner.ScannerError’>
ScannerError()
[’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\iohub\server.py”, line 591, in createNewMonitoredDevice\n device_instance_and_config=self.addDeviceToMonitor(device_class_name,deviceConfig)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\iohub\server.py”, line 750, in addDeviceToMonitor\n _dclass,default_device_config=load(file(dconfigPath,‘r’), Loader=Loader).popitem()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\init.py”, line 71, in load\n return loader.get_single_data()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\constructor.py”, line 37, in get_single_data\n node = self.get_single_node()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 36, in get_single_node\n document = self.compose_document()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 55, in compose_document\n node = self.compose_node(None, None)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 84, in compose_node\n node = self.compose_mapping_node(anchor)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 133, in compose_mapping_node\n item_value = self.compose_node(node, item_key)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 84, in compose_node\n node = self.compose_mapping_node(anchor)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 133, in compose_mapping_node\n item_value = self.compose_node(node, item_key)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 84, in compose_node\n node = self.compose_mapping_node(anchor)\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\composer.py”, line 127, in compose_mapping_node\n while not self.check_event(MappingEndEvent):\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\parser.py”, line 98, in check_event\n self.current_event = self.state()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\parser.py”, line 428, in parse_block_mapping_key\n if self.check_token(KeyToken):\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\scanner.py”, line 116, in check_token\n self.fetch_more_tokens()\n’,
’ File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\yaml\scanner.py”, line 257, in fetch_more_tokens\n % ch.encode(‘utf-8’), self.get_mark())\n’]
Error during device creation …”

I’m attaching the edited file: what I have done wrong?

monitor_devices:
- Display:
name: display
reporting_unit_type: pix
device_number: 0
physical_dimensions:
width: 590
height: 340
unit_type: mm
default_eye_distance:
surface_center: 500
unit_type: mm
psychopy_monitor_name: default

- Keyboard:
    name: keyboard

- Mouse:
    name: mouse

- Experiment:
    name: experiment

# SMI iView Config
- eyetracker.hw.smi.iviewx.EyeTracker:
    enable: True
    name: tracker
    save_events: True
    stream_events: True
    event_buffer_length: 1024
    monitor_event_types: [BinocularEyeSampleEvent,]
    network_settings:
        send_ip_address: 192.168.100.101
        send_port: 4444
        receive_ip_address: 192.168.100.102
        receive_port: 5555
    runtime_settings:
        sampling_rate: 60
        track_eyes: BINOCULAR_AVERAGED
        sample_filtering:
            FILTER_ALL: FILTER_OFF            
        vog_settings:
            pupil_measure_types: PUPIL_DIAMETER
    calibration:
        type: FIVE_POINTS
        auto_pace: Yes
        pacing_speed: FAST
        screen_background_color: 20
        target_type: CIRCLE_TARGET
        target_attributes:
            target_size: 30
            target_color: 239
            target_inner_color: RED
        show_validation_accuracy_window: True
    model_name: REDm

data_store:
enable: True
experiment_info:
code: ystart
session_info:
code: S0001

Thank you!