
- #MAKE AREAS OF TOUCHSCREEN BUTTONS PSYCHOPY HOW TO#
- #MAKE AREAS OF TOUCHSCREEN BUTTONS PSYCHOPY FULL#
In Psychopy’s Monitor Center, you can specify several properties of the monitor(s) that you intend to use for your experiment.
#MAKE AREAS OF TOUCHSCREEN BUTTONS PSYCHOPY HOW TO#
How to create a monitor configuration is explained in the next section! Monitors #Īnother important element of each experiment, both in the Coder and Builder interface, is the monitor that it is displayed on. Here, you need to fill in the name of the specific monitor configuration you want to use in your experiment. To see the effect of a different unit for size, change “Units” from “height” to, e.g., “pixels” and run the demo experiment again.Īnother important setting is the Monitor. Please read the excellent explanation of the different settings for the “Units” on the PsychoPy website. Another important setting is the “Units” that Psychopy should use. You can read more about PsychoPy’s color spaces here. The color specifies gray (as you’ve seen in the demo). These values can range from -1 (minimum amount) to 1 (maximum amount). The standard background color is in RGB space, where the first value specifies the amount of Red, the second value the amount of Green, and the third value the amount of Blue.
#MAKE AREAS OF TOUCHSCREEN BUTTONS PSYCHOPY FULL#
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).
