ABOUT: A C# WPF application that gets Eyetracking data from 2 different eye trackers parallely. It uses MSMQ to sync the servers and the experimental software. Documentation to be added once Version 1.0 gets out.
PREQUISITES:
- Install Python version of the respective version. (Eg: "Python 2.7")
- Install PyWin32 package of the respective version. (Eg: "pywin32-220.win32-py2.7.exe" )
- (optional) Install ctypes of the respective version, if you're using Python older than 2.5. (Eg: " ctypes-1.0.2.win32-py2.3.exe" for Python 2.3)
VOCABULARY:
- "logPath" - location where the logs will be stored. Maintain different logPath for ServerHandlers and ServerHandlerFactory.
- "HandlerPath" - location of the ServerHandler Executable. It is present in the installation folder itself.
- "testPath" - default location where the gaze-data is stored. Use it for practice sessions.
- "mainPath" - location where gaze-data of the actual experiment is stored. Data won't be stored in "mainPath" unless explicitly specified using DualPy functions.
- "CalibrationBounds" - specifies the dimensions of the calibration runner.
- "CalibrationPoints" - specifies the number of the points that will be displayed during calibration.
SETUP:
-
Install the application to a location you're comfortable with. Eg: C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System
-
Go to the installed directory.
-
Look for "ServerHandlerFactory.exe.config" file, and open it using wordpad or Notepad++.
-
- Change the value for "HandlerPath" to installation location. Eg: "C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System\ServerHandler.exe"
-
- Change the value for "logPath" to any location you feel comfortable with. Eg: "C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System\logs\ServerHandlerFactory\"
-
- Do not change anything else in that file. Save and close the file.
-
Look for "ServerHandler.exe.config" file, and open it using wordpad or Notepad++.
-
- Change the value for "configPath" to location where the Server config files are stored. Eg: "C:\config\"
-
- Change the value for "logPath" to any location you feel comfortable with. Eg: Eg: "C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System\logs\ServerHandler\"
-
- Change the value for "mainPath" to any location you feel comfortable with. Eg: "C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System\experiment\"
-
- Change the value for "testPath" to any location you feel comfortable with. Eg: "C:\Program Files (x86)\Simultaneous Dual Eye-Tracking System\test\"
-
- Change the value for "CalibrationBounds" to "0" if you want to calibrate the entire screen. Else, insert an appropriate value.
-
- Change the value for "CalibrationPoints" to "9" or other supported numbers. Check the Eye-Tribe doucumentation for supported calibration points.
-
- Do not change anything else in this file. Save and close the file.
-
Assuming you're using PsychoPy.Go to the installation directory and look for a package called "DualPy". Then, import it into PsychoPy2. One way to do that is to simply copy the folder to PsychoPy2\Lib. Example result: C:\Program Files (x86)\PsychoPy2\Lib\site-packages\DualPy
-
In the Python code,
-
- Import the package.
-
- Add Code components to the experiment, and add the following wherever appropriate.
-
- Create an object of "StimuliObserver"
-
- Call "start() stop() pause() connect()" functions appropriately.
HOW TO RUN:
- Launch ServerHandlerFactory.exe
- CLick on "start" and wait for it to load up.
- Run Calibration on both trackers, one-by-one. Accept the results.
- Run the experiment in PsychoPy2.
- Set name of the session.
- After completing, retrieve the gaze-data from "mainPath" or the "testPath"