MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Interrupt Service Routines in Mathematica v.5.2?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg73888] Re: Interrupt Service Routines in Mathematica v.5.2?
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 2 Mar 2007 06:46:07 -0500 (EST)
  • References: <es6d4i$ro8$1@smc.vnet.net>


Hi Januk,

cheap and dirty: use the existence of a file as a flag to print out your 

diagnostics. This can be achieved e.g. by "FileInformation". You would 

call this function inside your loop and when it does return something 

else than the empty list you print out the diagnostics.

Daniel



Januk 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

> 

> 




  • Prev by Date: Re: Beginner--Problem with FilledPlot
  • Next by Date: Re: Beginner--Problem with FilledPlot
  • Previous by thread: RE: Interrupt Service Routines in Mathematica v.5.2?
  • Next by thread: Re: Interrupt Service Routines in Mathematica v.5.2?