Reply To: Pausing experiment

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


Hi Nikhil,

“Finish the trial” can mean vastly different things depending on your task and your desiderata. You’ll need to make decisions as to what, precisely, should happen with each element in your task when the button is clicked. A very radical and easy-to-implement option is to just drop everything altogether, all you need to do is print a button whose callback will call end:

newButton("Stop").callback( end() ).print()

You can use as many commands as you want in the callback, so if you need to do anything with your existing elements (eg. stop some audio playback) before ending the trial, just do it there too

Let me know if you have questions as you implement your own solution