Make sure the stop property is left empty and that it ends the routine when the participant presses the return key (i.e., use “return” for Allowed keys). When enabled (the default), it will end the current routine and move on to the next whenever one of the allowed keys is pressed, which is exactly what we want for our instruction routine!Īdd a keyboard component to the instruction routine. The property Store correct is not relevant, here, so we’ll ignore that for now.Īnother important property, especially in our current use case, is the Force end of Routine option. In addition to some standard properties (like name, start, and stop), the keyboard component also has the property Allowed keys, which specifies which keys are recorded and affect this component, and Store, which specifies which of the potentially multiple key presses should be saved. To implement this, we’ll need to add a keyboard component. As mentioned, we’d like to continue the experiment if the participant pressed the return key. This is highlighted in the routine pane by the bar corresponding to the component extending beyond the time axis. The effect of leaving the stop property empty is that you, technically, create a component with an infinite duration. Give the component a sensible name, keep the letter height at the default (0.1), and leave the stop property empty. Importantly, you need to respond to the COLOR of the word and you need to ignore the actual word. In this experiment, you will see words (either “green” or “red”) in different colors (also either “green” or “red”). A finished Stroop experiment is available under solutions/week_2/Builder/stroop.psyexp, but we highly recommend that you first try to complete the exercises without peaking at the solution! Along the way, we explain several PsychoPy features, which you will practice with in ToDos. Using the Builder interface, we are going to create a simple color-word Stroop experiment, including instructions, with two conditions: congruent (trials in which the text color matches the word, e.g., red) and incongruent (trials in which the text color is different from the word, e.g., red). If you are not familiar with the Stroop task, check out the video below! You can also find a range of materials for teaching using builder view.Creating a Builder experiment from scratch (tutorial) #Īlright, now let’s get to the interesting part: actually creating experiments! In this tutorial, we will guide you through creating a “Stroop task”, step by step. There are a number of tutorials on how to get started making experiments in builder on the PsychoPy Youtube channel as well as several written tutorials and Experiment Recipes. Remember that PsychoJS is younger than PsychoPy ® - so remember to check the status of online options before making an experiment you plan to run online! The easiest way to host a study online from PsychoPy ® is through the Pavlovia ® platform, and PsychoPy ® builder has inbuilt integration to interact with this platform. PsychoPy ® builder view is writing you a python script “under the hood” of your experiment, but if you want to run an experiment online it can also compile a javascript version of your task using PsychoPy’s sister library PsychoJS. You can easily make an experiment to run online in a browser. Your experiment will be less likely to have bugs (experiments coded from scratch can very easily contain errors - even when made by the best of programmers!). Why would we (a team of programmers) recommend using a GUI?: Making your experiments using the PsychoPy ® builder is the approach that we generally recommend. Builder ¶ Building experiments in a GUI ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |