Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101157] Re: [mg101100] *slowing down* a Mathematica process (Dynamic/Refresh
  • From: Michael Stern <nycstern at gmail.com>
  • Date: Thu, 25 Jun 2009 07:15:07 -0400 (EDT)
  • References: <200962418452.203615@jfultz2winlap>

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

Michael



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 wolfram.com
> 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