Howdy, Stranger!

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

Supported by

[solved] Set timeout as correct answer on a Go/Nogo-task

edited March 2014 in OpenSesame

Hi everybody,

I have an issue with the outcome of my paradigm. Maybe someone can help me solving this problem I'm currenty working on a go/nogo-task. Therefore experimentees have to react on certain stimulus by pressing the space key. The reaction to another stimulus shall be repressed, which means that "timeout" would be the correct answer.

The paradigm works out quite well, the problem I have is that for some reason correct and aware timeouts are not counted as a correct answer. Does anybody know how to fix this problem? It seems as if opensesame isn't accepting timeouts as correct answers.

Thank you!

Comments

  • edited March 2014

    First of all: Thank you for your great work! I'm just starting with OpenSesame, but find it really intuituve and manageable! ;)

    I have the same issue (currently working on a Go/No-Go Association Test). The correct_* variables are empty (?) or 0, for trials where timeout would be correct.

    btw: it works with enabled auto response

    timo

  • edited 9:17PM

    Hi guys,

    I have a faint recollection of answering the exact same question sometime earlier, but I can't find the thread anymore. Anyway, what you could do is add a little bit of inline scripting. Let's assume you have a variable defined in your loop (let's call it go), and this variable is 1 on a Go trial and 0 on a NoGo trial. Place the following bit of code in an inline_script item, directly following the keyboard_response item in which you collect a response:

    if self.get("go") == 1 and self.get("response") != "None":
        exp.set("correct", 1)
    elif self.get("go") == 0 and self.get("response") == "None":
        exp.set("correct", 1)
    else:
        exp.set("correct", 0)
    

    Make sure to leave the "correct response" field of the keyboard_response item empty.

    Good luck!

    Edwin

  • edited 9:17PM

    Hi Edwin,

    that worked out perfectly! Thank you so much. Your work is great!

  • edited 9:17PM

    Thank you Edwin!
    The script worked out fine.

  • edited 9:17PM

    Hi,
    I am a beginner and I really need a more explicit advice.
    I inserted a in-line script, copied and pasted this lines of code (pepare, run or both?). What should I mention in the case "Run if" on the item feedback?
    best,
    Xavier

  • edited 9:17PM

    I am now realizing that you did not include a feedback, which is my case. Thus, what I want is a feedback indicated both misses (partipicants failed to press the key when they had to) and false alarms (they erroneously pressed the key).
    Any idea how to do this?
    x

  • edited 9:17PM

    I found the response: "timeout" should be coded "None". Now, everything is fine.
    Very lovely program by the way
    x

Sign In or Register to comment.