Millisecond Forums

post timeout feedback

https://forums.millisecond.com/Topic31948.aspx

By Kacha - 7/15/2021

I would like to display a text message after the timeout (only if a participant did not respond in time, and timeout worked), set the time for this message to be visible and then progress normally to post trial pause and to the next trial.
If there is a valid response - then no message.

I would appreciate a piece of advice on how to achieve that :)

Thanks,
Kasia
By Dave - 7/15/2021

Kacha - 7/15/2021
I would like to display a text message after the timeout (only if a participant did not respond in time, and timeout worked), set the time for this message to be visible and then progress normally to post trial pause and to the next trial.
If there is a valid response - then no message.

I would appreciate a piece of advice on how to achieve that :)

Thanks,
Kasia

<block exampleblock>
/ trials = [1-10 = trial.example]
</block>

<trial example>
/ stimulustimes = [0=space]
/ validresponse = (57, 0)
/ branch = [
    if (trial.example.response == 0){
        return trial.timeoutmessage;
    } else {
        return trial.iti;
    };
]
/ timeout = 3000
</trial>

<trial timeoutmessage>
/ stimulustimes = [0=outoftime]
/ trialduration = 2000
/ branch = [
    return trial.iti;
]
/ recorddata = false
</trial>

<trial iti>
/ stimulustimes = [0=clearscreen]
/ trialduration = 500
/ recorddata = false
</trial>

<text space>
/ items = ("Press SPACE or wait for the timeout")
/ erase = false
</text>

<text outoftime>
/ items = ("You ran out of time.")
/ erase = false
/ position = (50%, 70%)
/ txcolor = red
</text>
By Kacha - 7/27/2021

Dave, you are the best! Thank you. Also, for the very quick reply.
It took me a bit to incorporate this to my script, but works! I would never have solved this myself.