Reply To: Can we randomize time with newTimer() ?

PennController for IBEX Forums Support Can we randomize time with newTimer() ? Reply To: Can we randomize time with newTimer() ?

#7983
Larissa_Cury
Participant

Dear Jeremy!
I’m so so happy it worked!!!!! Thank you for your feedback!!!

Ohhhh, concerning the Var element…oh, all right. Yeah, you got my idea, which was to try to create a new collumn which would have the timers from Instructions_E up to the end of the experiment, so that then I could make the function in R use it as its parameter, but now that the 1:n() solution is working, I don’t think that adding a new Var is the best option, right? I guess that it is making the experiment kinda slower…but, If I did include that, would it look sth like this?

newTrial("blocks-timer-trial",
newText("blocks-text","Espere...")
.cssContainer({
    "font-size":"30px",
    "position": "absolute",
    "margin-top": "255px",    //places it in the middle of the screen 
    "white-space": "nowrap"})
.center()
.print()
,
    newTimer("blocks-text-timer",1500)
    .start()
    .wait()
,
  getText("blocks-text").remove()
,
 getVar("BLOCKS").global().set( v => Date.now() - v )
,                                                     ->......... it returns me an error when I try to separate them
.log( "BlocksTimer" , getVar("BLOCKS") )
);