Reply To: Variable Updating

PennController for IBEX Forums Support Variable Updating Reply To: Variable Updating

#4150
Jeremy
Keymaster

Hi Leo,

Thank you for letting me know. I don’t know what is happening exactly in your case, but maybe a comparison with a functional example would help identify the source of the problem:

PennController(
    newText("sentence").print()
    ,
    newVar("sentenceDisplayTime").set(v=>Date.now())
    ,
    newScale(10).print().wait()
    ,
    newVar("ratingRT").set( v => Date.now() - getVar("sentenceDisplayTime")._element.value )
    ,
    newText("")
        .settings.text( getVar("ratingRT") ) 
        .print()
    ,
    newButton("Push").print().wait()
)

Will display how long it took to select an value on the scale.

Jeremy