![mouse status iohub psychopy mouse status iohub psychopy](https://www.bdstall.com/asset/product-image/giant_65681.jpg)
![mouse status iohub psychopy mouse status iohub psychopy](https://www.bdstall.com/asset/product-image/giant_65670.jpg)
Thanks to the codes we were sending to the IOHUB on each trial, we are able to epoch the eye tracking data based on related time vales. The etDemo.psyexp is a simple experiment in which subjects are asked to look at the dots, it has been designed with PsychoPy 1.82.01 (Mac). If instead you see the events.hdf5 file in the experiment folder then this means that either you have not included the End Experiment code or the experiment was terminated before it run was meant to finish. Upon completion of the experiment you should see a new hdf5 file being added to the root directory this will be named hdf5_et_X_YYYY.hdf5 where X is your participant's id and YYYY is a date and time. sendMessageEvent( text = "tEnd %i" %( trials.
![mouse status iohub psychopy mouse status iohub psychopy](https://www.bdstall.com/asset/product-image/giant_40888.jpg)
We also need some code to be executed in the End Experiment part: An example Tobii TX300 tobii_std.yaml file is included in this repo and should be in the same directory as the PsychoPy file. Please note that the above code uses a hardware configuration file tobii_std.yaml which is specific to your tobii device. Import sys print "!! Error starting ioHub: ", e, " Exiting." sys. sendMessageEvent( text = "SSID: %s" %( expInfo)) sendMessageEvent( text = "DATE: %s" %( expInfo)) sendMessageEvent( text = "%s" %( expInfo)) # Send some info about the experiment to the IOHUB io. # Create an ioHubConnection instance, which starts the ioHubProcess, and informs it of the requested devices and their configurations. Here we use the psychopy getDateStr() function for session code generation session_info = io_config.
#Mouse status iohub psychopy update#
# Add / Update the session code to be unique. io_config = load( file( 'tobii_std.yaml', 'r'), Loader = Loader) data import getDateStr # Load the specified iohub configuration file converting it to a python dict. util import NumPyRingBuffer from psychopy. iohub import EventConstants, ioHubConnection, load, Loader from psychopy.