Basics: Why doesn't my task respond to a key_response?
Hi,
I am new to OpenSesame, so this is probably a very stupid question, but I can't get my task to respond to keyboard input (Hit the letter "c" ) following the presentation of instructions at the beginning of the experiment. I have waited for 30-60 seconds, and eventually hit escape since the program does not move forward.
The script based on what I tried to run is this:
"Expyriment 0.8.0 (Python 2.7.12)
openexp.sampler._legacy.init_sound(): sampling freq = 48000, buffer size = 1024
openexp.sampler._legacy.init_sound(): mixer already initialized, closing
experiment.run(): experiment started at Thu Oct 6 17:58:33 2016
experiment.run(): disabling garbage collection
experiment.end(): enabling garbage collection
The escape key was pressed.
item-stack: experiment[run].Instructions[run]"
I am using a form_text_display to present the instructions, followed by a keyboard-response item to collect the response. I ask subjects to hit the letter "c" to move on, and "c" is identified as the correct response and the allowable response in the keyboard response item.
I've wondered whether the program is taking time to prepare stimulus presentation -- as I am presenting two .tif files in each trial -- so maybe I need to add some "prepare" inlines?
Any suggestions for what I should look at to figure out the problem?
Thanks!
Ellen
Comments
Hi Ellen,
Based on the information you provided there could be multiple things going on. One possibility is that you entered the
c
in the allowed- and correct response boxes with quotation marks ("). These need to be removed.If that's not the case, then it's due to the logic of your code. What you could do is to place an inline_script right after your keyboard response item, and in the run phase insert something like
print "Hi"
. If you see "Hi" in the debug window, then you know at least that the keyboard response item works properly.Cheers
Josh
Hi Ellen,
If Josh's suggestions don't help, you can also upload the experiment here, so that we can have a closer look.
Eduard