Howdy, Stranger!

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

Supported by

[open] collect feedback when correct response= no key press

edited October 2015 in OpenSesame

Hi I use a keyboard_responses to collect respondent key presses. The correct response is "Space" for some trials and "No Key Press" key for the other trials. Please kindly help to know how this should be defined in the keyboard applet.

Thanks in advance,
Masoud

Comments

  • edited 11:27AM

    Hi,

    The procedure to do this is very similar to the one you used in order to set the ISI.

    So in an inline_script, you have to set a variable (e.g. allowed_resp) to either "space" or "none" (you might want to look up what the code for "no keypress" is, I am not sure about it), depending on when you want to have which.
    Then you have to set this variable as part of the exp object, with exp.set and finally you put [allowed_resp] into the field correct_response in the keyboard_item.

    Does this make sense to you?

    Eduard

    Buy Me A Coffee

  • edited 11:27AM

    Thanks Eduard
    May I have these syntax all in one script then I could add it to my program?
    Masoud

  • edited 11:27AM

    Hi,

    That's not that easy, I would need to know the criteria, by which you define whether the allowed response is space or None.
    In general it is something like this:

    if condition1:
        allowed_resp = 'space'
    elif condition2:
        allowed_resp = None
    
    exp.set('allowed_resp', allowed_resp)
    

    And then you still have to set the correct response it in the keyboard_item.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.