autoDraw = True # Automatically draw every frame gabor. autoLog = False # Or we'll get many messages about phase change # Let's draw a stimulus for 2s, drifting for middle 0.5s clock = core. ![]() Kill all running Discord processes in Task Manager. getTime () < 2.0 : # Clock times are in seconds if 0.5 <= clock. Next, press Windows key + R to invoke the Run dialog. Psychopy coder stuck on gray window no error message windows# In the Run dialog box, type in the environment variable below and hit Enter. phase += 0.1 # Increment by 10th of cycle win. flip ()Ĭlocks are accurate to around 1ms (better on some platforms), but using them to time stimuli is not very accurate because it fails to account for the fact that one frame on your monitor has a fixed frame rate. In the above, the stimulus does not actually get drawn for exactly 0.5s (500ms). If the screen is refreshing at 60Hz (16.7ms per frame) and the getTime() call reports that the time has reached 1.999s, then the stimulus will draw again for a frame, in accordance with the while loop statement and will ultimately be displayed for 2.0167s. PsychoPy is a free cross-platform package allowing you to run a wide range of experiments in the behavioral sciences (neuroscience, psychology, psychophysics, linguistics) This is a community project. Psychopy coder stuck on gray window no error message free#Īlternatively, if the time has reached 2.001s, there will not be an extra frame drawn. Alongside open-source, we’re strong supporters. I used PsychoPy GUI to build a simple experiment playing a video then added a snippet handling the pygaze part. So using this method you get timing accurate to the nearest frame period but with little consistent precision. An error of 16.7ms might be acceptable to long-duration stimuli, but not to a brief presentation. It also might also give the false impression that a stimulus can be presented for any given period. At 60Hz refresh you can not present your stimulus for, say, 120ms the frame period would limit you to a period of 116.7ms (7 frames) or 133.3ms (8 frames).Īs a result, the most precise way to control stimulus timing is to present them for a specified number of frames. The frame rate is extremely precise, much better than ms-precision. Psychopy coder stuck on gray window no error message windows#Ĭalls to Window.flip() will be synchronised to the frame refresh the script will not continue until the flip has occurred.Psychopy coder stuck on gray window no error message free#.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |