post timeout feedback


Author
Message
Kacha
Kacha
New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)
Group: Forum Members
Posts: 9, Visits: 26
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
Dave
Dave
Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)Supreme Being (947K reputation)
Group: Administrators
Posts: 11K, Visits: 71K
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>

Kacha
Kacha
New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)New Member (24 reputation)
Group: Forum Members
Posts: 9, Visits: 26
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.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search