Re: Interrupt Service Routines in Mathematica v.5.2?
- To: mathgroup at smc.vnet.net
- Subject: [mg74020] Re: Interrupt Service Routines in Mathematica v.5.2?
- From: "Januk" <ggroup at sarj.ca>
- Date: Tue, 6 Mar 2007 05:30:24 -0500 (EST)
- References: <firstname.lastname@example.org>
Thanks all who responded. There are some very interesting solutions, though unfortunately they are a bit too cumbersome for what this notebook needs to be. I was hoping for something a little more native to Mathematica, but it looks like that's not an option right now. Thanks anyway, Januk On Mar 1, 6:24 am, "Januk" <ggr... at sarj.ca> wrote: > Hi all, > > Is it possible to create an interrupt service routine in Mathematica v. > 5.2? While running a long calculation, I want to define some other > code that can be triggered by some event external to the calculation. > On completion of the interrupt service routine, the main calculation > should automatically resume with little or no knowledge that the > interrupt ever occurred. > > The first place I would like to use this would be to monitor a long, > complicated calculation in a loop. Each iteration through the loop > may be too slow (or too fast) for me to simply display diagnostic > information once per iteration. I would rather display the > information every x-seconds, or when the user presses a button. > > Any suggestions or comments would be appreciated. > > Thanks, > Januk