code to collect kepress and log data
Hi there I am trying to write some code to creare a random dot experiment.
I have managed to get the basic screen display to work using a python script and I have also managed to inplement variables for Coherence and Direction.
I am having two problems, which i cant seem to solve:
Firstly, the RT time of the keypress is logged but the name of the key that was pressed is not.
Secondly, I am able to run this in a window, but when I try to run in full screen I just get a blank screen.
Please can you help
Jarrod
Comments
Hi @Jarrod@Jarrodhollis ,
It looks like you've copy-pasted a complete PsychoPy script into an
inline_scriptitem. However, that's not (exactly) the way to go, because the script currently does several things that you don't want it to do, such as initializing another window and collecting a key press.Here's what I would do instead: use an
inline_scriptto only render the random-dot stimulus. Use this script together with akeyboard_responseinside acoroutinesitem so that you can collect a key press while presenting that stimulus. You can read more about that here:You may also want to read up about how to use PsychoPy within OpenSesame:
Good luck!
-- Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!