Actions after stop press?

mhisted's Avatar


28 Oct, 2013 01:46 PM

Hi Chris,

Is it possible to run actions after the state system is stopped/interrupted?

I tried this at the end of my experiment XML file and none of the messages get displayed after I press the Stop button.
I'm looking for some kind of try/finally construct that can run actions after state system stop, whether it was correct or the result of an error/interrupt.


         <action type="report" message="end 1"/>
       <action type="report" message="end 2"/>
     <action type="report" message="end 3"/>

  1. Support Staff 1 Posted by Christopher Sta... on 30 Oct, 2013 02:09 PM

    Christopher Stawarz's Avatar

    Hi Mark,

    No, I don't think there's a way to do this at present. Setting interruptible="NO" on a block/trial/state will ensure that all enclosed actions complete even after you press the stop button, but that doesn't really help you here.

    I can think of a couple ways we could provide this functionality. Should I add it to the to-do list?


  2. 2 Posted by mhisted on 30 Oct, 2013 02:35 PM

    mhisted's Avatar

    Yes, please add it.
    As with try/finally, this would be used often to clean up hardware device state at the end of every trial.

  3. Christopher Stawarz closed this discussion on 12 Nov, 2013 04:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac