Chapter Three: Experiment Designing
In chapter three we focus on the different tools and elements you can use to design your own experiments in PsychoPy3. This consists of learning the code for the different elements you want in your experiment.
This chapter will teach you how to present different types of stimuli to the participant.
It is always useful to start the code for your experiment with a commented header that introduces you and your experiment.
Example X: Creating a header for your code and importing necessary modules
We also always start our code by thinking of the modules we will use in the code and importing them as shown in the image above.
We have the from psychopy part that tells the program that we want to import some modules from PsychoPy3. Then we tell it which modules we want to be imported. In the example above we import two modules. The visual library that imports the module in charge of visual presentation. And we import the event module that controls events like key presses. We will make sure to include all the modules needed for each element of the experiment design as we go through the chapter.