Actions after stop press?

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.

Thanks,
Mark

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

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?

Chris

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.
M