If you perform experiments on computers shared by different research groups (e. g. at a shared experimental facility), it's possible that their experiments and yours are written using different versions of . Or maybe you yourself have some older and some newer experiments. In such a situation, it's important to ensure that the right version of is used for the right experiment.
In PsychoPy standalone, there is an easy-to-use system for controlling what version of is used.
- Open up the experiment file (a '.psyexp' file) that contains the experiment you want to use.
- Go to experiment settings by clicking the icon with a cogwheel.
- Under the "Basic" settings tab, there is an option named "Use PsychoPy version". Set it to the PsychoPy version you want to emulate.
- Click "OK" to save the settings.
- Run the experiment by clicking the green 'run' button.
- Open up the script file (a '.py' file) that contains the experiment you want to use.
- Add
import psychopy
at the top of your script, above all other import statements.
3. Add the function call psychopy.useVersion('<version_no>')
directly below import psychopy
, but still above the other import statements. Here's an example: :
import psychopy
psychopy.useVersion('2021.1.0')
from psychopy import visual, core, event
# the rest of your script follows
- Run the script.
You need to have a working internet connection the first time that you run an experiment using a particular version (e. g. 1.90.2) on a computer, so that can download some info about the version for you. Once you've used a version once, your computer has saved the information it needs for emulating it. This means that after the first time, you don't need an internet connection if you run the same or another experiment using that version (e. g. 1.90.2).
Using either of the above methods, you should often only need the latest version of standalone to run older experiments. However, if you have an experiment designed with a very old version of (say, version 1.77.01) you might have to install an older version of standalone . Since these things change over time, you probably want to search for help in the PsychoPy forums.