Howdy, Stranger!

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

Supported by

Unable to code a forced-choice option

Hi, I would like to code a forced-choice option whereby subject can only proceed to the next trial upon answering the question from the current trial within 3 seconds, upon 3 seconds there will be a screen preview prompting subject to make a choice so that they can carry on with the experiment.

This is the part where I am unable to make the "prompting screen" pop up after 3 seconds and move on to next screen only if responses are made. I tried changing the guess_prompt to [response_time] but the guess prompt screen does not appear. If I changed it to "always" then it appears in every trial which isn't what I want.

Please guide me on the necessary coding needed to run this program. Thank you!!


Comments

  • Hi @Claire ,

    If I understand correctly, you want the response collection to stop when a response is collected. So strictly speaking there is no timeout. However, if a response hasn't been collected within 3 s, then a prompt should appear (to tell the participant to hurry up, probably). Is that correct?

    If so, then you probably want to use a coroutines item, where you specify that the coroutines should end after a response has been collected, and that the start time of the prompt is after 3000 ms.

    Does that make sense?

    — Sebastiaan


Sign In or Register to comment.