![]() we should perhaps ignore correct keypresses on the current number if they occur before a physiologically valid interval has elapsed, and instead regard responses to the previous number as correct during that period). This isn't very sophisticated: it ignores the reaction time issue (e.g. key is, you can use a method like that shown above to find out. therefore, become more spaced apart but they will also get larger and rhomboid in the pixels that they occupy. The key functions in psychopy return a list of strings, where each item in the list is. One of the key advantages of PsychoPy over many other experiment-building software packages is that stimuli. # check for keypresses on every screen refresh: PsychoPy provides a simple and intuitive way for you to calibrate your monitor and provide other. # the stimulus 60 times (= 1 second duration): To do that I have added these lines of code in the frame.tab: () pressed () if pressedpygame. You can get the behaviour you want by overriding that: keysarray event.waitKeys (clearEventsFalse) But I think that keys pressed prior to calling the function would not have useful reaction times recorded (although keyboard handling has changed a lot in version 3.1). # assuming a screen refresh rate of 60 Hz, draw Hi everybody, In a part of our orientation perception experiment, we first show an oriented line to the subjects then we ask them to report its orientation on the next screen. Tstim = visual.TextStim(win, text = 'blah', pos=(0,0))įor number in : Introductions Getting Started with PsychoPy (Part 1) PsychoPy Overview, Stimuli, Input PsychoPy Help 1 Jason Ozubko 977 subscribers Subscribe 511 24K views 1 year ago PsychoPy Help. ![]() Win = visual.Window(, fullscr = False,ĪllowGUI = True, units = 'pix', color = (-1, -1, -1)) Untested, but try something like this: from psychopy import visual, core, event In your case, the subject probably had around 0.1 seconds to press before it reached the event. it takes longer to create a text stimulus from scratch than it does to just change the content of an existing one). () returns a list of keys since the event module was instantiated OR since last getKeys() call OR since event.clearEvents().It returns None if no keyboard events were registered in this frame. ![]() Also, for better performance, you should create your stimuli just once, and then update their properties as required (i.e. You should avoid core.wait(), as you can't do anything during that interval (like continuously check for keypresses, which is (I think) what you want. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |