[solved] How do I collect the keyboard_response after a stimulus disappears?
Hi, Sebastiaan. I'm jongsup, your Korean colleague who is teaching Psycholinguistics using OpenSesame at a Korean university. Hope you remember the e-mail correspondence we had last winter.
Here's my question. I want to present a target stimulus for 500ms. That is, the target stimulus should disappear in 500ms. But I want to set the timeout for keyboard_response to 2000ms. That is, the response should be recorded for 2000ms (even after the target stimulus goes away).
How can I achieve this? Can you suggest me any useful inline script for this? It seems that I need something more than the 'self.sleep()' script.
Thanks in advance for your help and efforts.
From JS
Comments
Hi Jongsup,
Yes, of course I remember! Great to heard that you're actually using it now.
Below is a quite elaborate inline script that should do what you need. Basically, it collects a response first with a timeout of 500ms. If no response is collected during that time, the display is blanked and a response is collected again for 1500ms, giving a total timeout of 2000ms. It also maintains feedback variables, etc., which is actually most of the script. Importantly, the script assumes that it is preceded my a sketchpad called my_sketchpad with a 0ms duration. So you can just present the target stimulus on a regular sketchpad.
Hope this helps!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Goodness! How can I express my deepest gratitude to you, Sebastiaan? I will definitely test this inline script with my students, and may ask you further questions. At the moment, I want to let you know that I have taught more than 80 students how to use OpenSesame this semester here in Korea. We all admire your help and achievement!
JS