Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Problem with Keyboard response

Hi everyone,

I am new to the world of OpenSesame/Programming in general, so I don't know if the following is a silly question, but I'll try. I'm trying to create a simple attention experiment with two kinds of stimuli, where the correct response for the first stimulus is "Space" while is None for the second stimulus. I successfully created the block loop and defined the correct response with the inline script, as you can see in the pictures below. The only problem, is, when I run the experiment, and look at the Data file, the accuracy for the "ani" stimuli, even if I press "space", is always 0, while for the "veg" stimuli is correctly 1 when I whithold. Then I tried with some other Key, but the issue remains. I even tried to press "Space" to all the stimuli. In this case the "ani" accuracy remains = 0, but the "veg" accuracy changes to 0. So, it's not a keybord problem, or something similar. I apologies beforehead if the question has already been asked.

Cheers!



Comments

  • Hi,

    this could be because of the quotation marks, but I am not sure. In any case, you can add the correct_response to the loop table. Then you don't have the issue. See the attached example. As far as I can see, it works the way you intend it to.

    Hope it helps!

    Eduard


    Buy Me A Coffee

Sign In or Register to comment.