Now that we have created the instruction routine and initialized some variables that we will use, it is time to create the main routine which will contain the actual experiment.ħ.1) Let’s remove the trial routine by right-clicking and selecting remove. Step # 7: Create the main routine (Image presentation + Image choice) (This should have been multiple steps but I had already made the outline OTL) The components can be moved up or down by right-clicking on them. The order in which you add components to the routine is how they will execute. Both these variables need to be defined before defining num_trials. Note above that the variable num_trial relies on the variable num_stimuli_per_trial and num_images. Inside the Psychopy builder, select “insert routine” from the flow panel and add it behind the existing ‘trial’ routine. We will start by creating an ‘instruction’ page routine that would explain the contents of the experiment to the participant. A text box, an image, a button, or a keypress are all examples of components that can be added to a routine. A routine could be a screen with a welcome message, a data collection form for your subjects, or a stimulus-response action.Ĭomponents are elements in psychopy that can be added to a routine. At one moment, your experiment stays in one routine. Routines are execution units in psychopy. Step # 5: Understanding Routines and Components For example, the first part of an experiment may teach the task to the participants followed by a test block which is analyzed. An experiment may also contain different ‘blocks’. These are not standard terms but just the format used in my lab. Below is a rough paper flow chart for this experiment.įor the sake of this tutorial, we will call an individual presentation of an image a ‘presentation’, a batch of eight images a ‘trial’, and a whole run of the dataset a ‘repetition’. Here, we may want to present all the images from our dataset twice to a subject in batches of eight images. (Note: the dataset you will see in class will be different from the one available here) Step # 4: Create a rough flow of your experiment on paper The participants will use the left or right keypresses to select which of the two images shown later resembles the original image more. Images from this dataset will be randomly selected followed by two other random images from the same dataset. We have a dataset of dog images (Download here). Here we will create an experiment where the participants will perform a match-to-sample task. The blank project starts with a single routine called trial Step # 3: Decide what experiment you are going to run You can create a new project by clicking on File -> New Step # 2: Open Psychopy and create a new project
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |