MathGroup Archive 2009

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

Search the Archive

Re: *slowing down* a Mathematica process (Dynamic/Refresh

John, that's great. One question -- why the nested calls to Refresh[]?


John Fultz wrote:
> To restate your problem in a way which can be observed without your code, I 
> think you're looking for this...
> x = 0; Dynamic[Refresh[x++, UpdateInterval -> 1]]
> to update at 1 second intervals rather than the minimum of 1 second and the 
> amount of time it takes to change x (which, in this case, is far less than 1 
> second).  To do this, you should do something like...
> x = 0; Dynamic[Refresh[Refresh[x++, None], UpdateInterval -> 1]]
> I.e., you're removing entirely the trigger of the changing value of x that 
> causes the Dynamic to update, then adding a new trigger which causes an update 
> every second.
> Sincerely,
> John Fultz
> jfultz at
> User Interface Group
> Wolfram Research, Inc.

  • Prev by Date: Re: soap films
  • Next by Date: Re: Possible bug in Mathematica 7 using ColorFunction
  • Previous by thread: Re: Points In/Out in 3D shapes
  • Next by thread: changing color, size etc on text