![]() We can change the orientation, color, size, position, font, and duration of the text, but for now let’s just change the Stop – “duration (s)” from 1 to 4 and the Text from the default to “You will now begin an experiment. Then, click on the text stimuli component to add it to the routine. First, remove the trial routine and add a new routine called “instr1” by clicking Insert Routine –> New and then click where in the flow it should go (only one choice at the moment). Let’s try adding some simple stimuli components to our experiment, say for the instructions at the beginning of the experiment. You can control almost everything about components, but right now we’ll focus on duration and types. ![]() The components you use most often will be shown at the top portion of the components menu (c.) while those used less often are shown in the menus below (d.). Routines are made up of components: either input (mouse clicks, button box presses, microphone recordings) or output (text on the screen, audio stimuli, graphics). ![]() If we had more than one routine, we could change which routine we were editing in the main window by clicking on it in the flow or clicking its tab in the upper left corner. The main window (b.) shows the content of a single routine. In the above example there is only one routine called “trial”. The Flow is the bottom part of the builder window (a.) and shows the order of all your routines. One way of thinking of these routines are as individual slides in a slideshow. PsychoPy experiments are built together by assembling Routines or modules which each have a certain function. The above Figure 1 shows the basic layout of the Builder View. PsychoPy experiment files will end in the extension “.psyexp”.įigure 1 – Example of PsychoPy Builder Window Then, save your blank experiment in a folder. On windows, this will open the PsychoPy builder window as well as a command line window running python which you need to leave open. Once installed, open up PsychoPy to begin a new experiment. We recommend choosing the Standalone option, as this includes all the relevant dependencies and is the most hassle-free option. The first step is to choose your installation. Throughout this tutorial we’ll be giving examples in a Windows environment, but processes for Linux or Mac environments are comparable. If your specific type of task isn’t listed in the examples, experiment with the builder yourself and see if you can figure out how to make it work for you! Also consider referencing the PsychoPy manual and various message boards and forums for answers to your questions. 以下是我编辑后的更新。我把所有与黑屏有关的内容都移到了第一个10秒的while循环之前。 #Create the black screen for acclimationNow we’re going to walk through how to use PsychoPy, from installation to experiment with descriptions of the most important features. While True: #this creates a never-ending loop The phase is always advanced by 0.05 of a cycle. Adult optimal is 12 angular cycles, larvae optimal is 16 angular cycles (See Table 1).įixation = visual.GratingStim(win=mywin, size=999, pos=, sf=0, color=) Grating = visual.RadialStim(win=mywin, mask='circle', tex='saw',size=20, color=,pos=,angularCycles = 4, angularRes = 3600, contrast = -1.0) #angularCycles are the number of black/white bars presented by the stimulus. See table for additional speeds correlates to 12 angular cycles for adults and 16 angular cycles for larvae. SPEED = 1.04 #1.033 is adult optimal, 1.04 is larvae optimal. TIME = 10 #this is seconds of stimulus display and should be changed based on experimental needs (See Table 2) Mywin = visual.Window(, monitor="testMonitor", units="deg", fullscr = True)īlack = visual.GratingStim(win=mywin, size=999, pos=, sf=0, color=)īlacktimer = core.CountdownTimer(TIMEBLACK) 不相关的说明:我正计划改变每个循环的时间 #import libraries needed from PsychoPyįrom psychopy import visual, core, event, sys
0 Comments
Leave a Reply. |