Reply To: Pausing experiment

PennController for IBEX Forums Support Pausing experiment Reply To: Pausing experiment

#6408
Jeremy
Keymaster

Hi,

Would you mind sharing the link to your experiment with me, either here or privately at support@pcibex.net? The end command only stops the current trial, so if it runs through the end of your experiment, it may be coming from an interaction with your specific design

Oh and I forgot to address the “pause” component from your first message. One option is to add a Header that will pause execution if a Var element has been set to true when clicking the button, eg:

Header(
  newVar("pause", false).global().test.is(true).success(
    newButton("Resume").print().wait().remove(),
    getVar("pause").set(false)
  )
)

Of course you also want to add getVar("pause").set(true) before end in the callback of your pause button

Jeremy