Putting 4s time pressure on experimental trials

PennController for IBEX Forums Support Putting 4s time pressure on experimental trials

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9775
    KateK
    Participant

    Hi all!

    First, I want to thank everyone again on the forum for their continued help and support!

    I am currently adding a time pressure to each of my trials lasting 4s. The interface of the experiment requires participants to select one of three radio button options. If they don’t select an option within 4s, I would like to have that trial automatically “time out” and have the participant press the SPACEBAR to proceed to the next trial/row of the .csv.

    I read this post about implementing this sort of time limit in a task that requires participants to press the F/J key to respond, but I’m not sure how different it will be to do the same sort of thing when participants are clicking radio buttons.

    I sincerely appreciate your advice!

    #9776
    Jeremy
    Keymaster

    Hi,

    Yes, the logic is exactly the same:

    newTrial(
        newTimer("timeout", 4000).start()
        ,
        newText("Please click on A, B or C").css("margin-bottom","1em").print()
        ,
        newScale("answer", "A", "B", "C")
            .css({"max-width":"unset",width:"10vw"})
            .button()
            .callback( getTimer("timeout").stop() )
            .print()
            .log()
        ,
        getTimer("timeout").wait()
        ,
        clear()
        ,
        getScale("answer").test.selected().failure(
            newText("Time out! Press SPACE to proceed").print()
            ,
            newKey(" ").wait()
        )
    )

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.