klionan.blogg.se

Psychopy demos
Psychopy demos





psychopy demos
  1. Psychopy demos how to#
  2. Psychopy demos install#
  3. Psychopy demos full#
  4. Psychopy demos software#
  5. Psychopy demos code#

Include pasted full error message if possible. What specifically went wrong when you tried that?: The application force closes and goes back to the desktop. What did you try to make it work?: I tried the demos out which worked, but whenever I try to run my own work, PsychoPy crashes. What are you trying to achieve?: Making any experiment run Standard Standalone? (y/n) If not then what?:y If not then just delete and start from scratch. However, there should be no expectation of support like a commercial product.If this template helps then use it. I am trying to make sure the content here is useful.

psychopy demos

If you find an error, or have a question, please let me know. No responsibility or liability is assumed, nor is it assumed I can provide support for all errors encountered.

Psychopy demos code#

I try to ensure all information and code are correct, but this does not preclude errors or buggy code.

Psychopy demos software#

Now open Spyder and you should be able to run the following small script without errors:Īll software and advice are provided as is.Add the following two paths (psychopy usually installs to C:\Program Files (x86)\PsychoPy2 on Windows) and do NOT click “synchronize”.Open Spyder –> Tools –> PYTHONPATH manager.If you use Windows, you need to make Spyder “aware” of PsychoPy by doing the following: On windows, Spyder is pre-packaged in the python(x,y) package among others. I’ve reprinted part of his solution below (note this gui solution may cause issues with ipython console, library conflict, if so try the import version instead): Fortunately, Jonas Lindelov has a nice blog on several aspects of python including this very issue. how do you add the right directories to the environment).

Psychopy demos how to#

However, if you are trying to run code from PsychoPy using Spyder it’s not obvious at first how to make this happen (i.e. Python(x,y) comes bundled with Spyder which is a very nice IDE. numpy, matplotlib, scipy, and many more) and does a lot of the tedious housekeeping for you in one install, along with installing several useful python dev apps. You have to manually edit the program if you want to use your specific tracker id.įor those of you who prefer a different IDE, I’ve found Python(x,y) to be a pretty good matlab (my usual platform) replacement, it’s a package that contains many useful libraries (ie. By default the psychopy program requests the name of the first tracker connected and will have unpredictable results if it sees multiple trackers.

psychopy demos

If you have more than one Tobii tracker, make sure to only have the one you are using plugged in.

Psychopy demos install#

Download and install the latest version of the avbin libraryħ. The file and the source code for the demo can be found in your psychopy install directory (it will look something like): C:\(psychopy install location)\PsychoPy2\Lib\site-packages\PsychoPy-1.80.03-py2.7.egg\psychopy-1.80.03\demos\coder\iohub\eyetracking\gcCursorĦ. A configuration file is written by default to specify a non-Tobii eye tracker so must change it. Be sure to comment out the portion of the config.yaml file that references any trackers that aren’t Tobii and to uncomment any sections that refer to the Tobii tracker.ĥ. You may need to try running PsychoPy as an adminĤ. Make sure that sample codes in the Tobii SDK can run in python, these examples are located in: C:\(sdk install location)\TobiiAnalyticsSDK-3.0.83-Win\tobii-analytics-sdk-3.0.83-win-Win32\Python27\Samplesģ. Make sure that the SDK is properly setup with pyGTK and the python path is correctly set (SDK developer guide pg. In fact PsychoPy has a huge amount of demos that are well worth examining as many techniques for psychophysics experiments are shown off and can save a lot of work! If you have any problems running the demo, you can double check following things:ġ. With my coworker Burcin Dede, we have been documenting some common problems with getting psychopy’s demo code to run with the Tobii tracker and some important notes we have made are listed below: You can find a code example within the PsychoPy GUI if you look at the ‘demos’ drop-down menu and look within the ioHub section: Demos>ioHub>gCursor. However, getting the example code to run is not always easy as there can be some problems that can be difficult to troubleshoot if you aren’t familiar with Python or PsychoPy. While the Tobii SDK does not directly support PsychoPy, PsychoPy has example code that should work with the Tobii trackers (and several other eye trackers).







Psychopy demos