

You can also choose to run the experiment full screen (the default) or whether to specify a particular window size (in pixels) and the background color used in the window (“Color”) and the colorspace used through the experiment (“Color space”). The “Screen” option (default: 1), for example, specifies on which screen the experiment should run in case of multiple monitor set-ups. The “Online” tab contains various settings to export your experiment to a format that can be used online (only applicable to Builder experiments), but this is beyond the scope of this course.įinally, the “Screen” tab contains several important settings that specify the experiment window. Currently, Psychopy advises to use the Psychtoolbox (ptb) soundlibrary. Under the “Audio” tab, you can specify which soundlibrary Psychopy should use. We recommend always saving the log and the “trial-by-trial” CSV files. In addition to the mandatory “psydat” file (which we personally never used), you can also have Psychopy save an extensive log file and CSV files. If you’re feeling adventurous, try using F-strings instead of format specifiers! This way, you can customize your output filenames according to the information provided by the participant!Īssuming you added the “age” field to the info dialog earlier, try to add the participant’s age to the output filename such that if, for example, participant 01 who is 29 years old does the experiment, the output filename will be sub-01_age-29_intropy_demo (+ extension). Here, expInfo, refers to a Python variable (a dictionary) that represents the info dialog pop-up (plus some additional information). In our demo experiment, we furthermore specified that the filename should be sub-%s_%s', in which the format specifiers ( %s) are replaced by the participant identifier ( expInfo) and experiment name ( expInfo). By default, a new directory, data, is created in which the files will be saved. Next to “Data filename”, you can specify the filename of the datafiles that will be saved. Under the “Data” tab, there are various options to fine-tune how you want your experimental data to be saved. Just before the experiment window opens, you should see the info dialog pop-up! Then, run the demo experiment again (press the escape key to quit). Enable the info dialog by clicking the checkbox next to “Show info dialog” and add a new field, “age”, to the info dialog (without a default value).
