![]() ![]() This will allow the PsychoPy version of Python to import the tobii SDK functions. ![]() The directory you want to copy to is called 'Contents'. On MacOS, this is accessed by finding PsychoPy2 in your Applications folder, right-clicking, and clicking 'open package contents'. On Windows, this is under 'ProgramFiles(x86)\PsychoPy2'. If these do not exist, go ahead and create them.ĭownload the tobii SDK and copy the 'python27' folder into your PsychoPy install directory. The names should be 'testMonitor' and 'tobiiMonitor'. Go into Monitor Center on PsychoPy and make sure there are two monitors present. The other files are simply ports of the MATLAB versions. 'display.py' - Miscellaneous functions for displaying text, countdowns, etc. 'TaskController.py' - Creates file system to store data and settings, runs tasks, and launches dialogue boxes. 'start.py' - Initializes the Task Controller after taking in the home directory Utils/ contains helper functions needed to convert timestamps and clean and interpolate raw data.įolder for the python ports of the tasks, including a GUI based system Contents Based on the file name, the program will choose the appropriate analysis:Īnalyze_*.m are analysis files called by the above, each for a particular task. When run, prompts the user to select a file to analyze. Sample_analysis_scratch.m is a matlab file that can be used to run selected analyses on selected data files. Other functions inside the folder are either resources for the tasks (wav files) or helper functions for the task code. Calibration: calls calibrate.m, which handles calibration with the Tobii and must be run prior to the rest of the tests.Given a user code, it sets up the necessary directory structure for saving files and runs selected tasks. Pupiltest.m is a master programming for running the individual tasks. This is good for situating participants in the chair. TrackPupil.m is adapted from the Tobii SDK and allows users to interactively see the positions of their eyes onscreen as recorded by the tracker. 32(portaddress, 0) #deletes the trigger i.e.Pupil Task and analysis code for pupillometry studies with Tobii and Psychtoolbox Relies on the Tobii SDK and Psychophysics Toolbox Task folder 32(portaddress, triggerCode) #sends the trigger with triggerCode being an integer between 0 and 255 Of course, you need to insert the port address that worked with "LPT Test Utility" in your PsychoPy code. If the triggers work with the "LPT Test Utility" program but not using PsychoPy, an individual troubleshooting dependent on your code is necessary. If this still fails, probably the hardware components (parallel port plug / card, cable(s), sync box) are damaged. Using Windows 7 this should not be necessary but actually solved one major issue for me. If this fails, (re-)install a parallel port driver. If the triggers don't show on your recording computer using this program, you have an issue that is not related to PsychoPy. If using the standard addresses ( LPT1 through LPT3) doesn't work, select LPTX and enter your address manually ( see here where to get your parallel port address on a Windows PC). More over, it helps you to monitor and manipulate the pins of your parallel port. I'm not entirely sure which step(s) actually cut the curve but I recommend the following:ĭownload and install LPT Test Utility on your presentation computer.Īt first, this program installs the inpout32.dll automatically and correctly regardless if you use a 32 or 64 bit OS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |