Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Dynamic Interactivity > Dynamic Interactivity Language >

Refresh

Refresh[expr, opts]
represents an object whose value in a Dynamic should be refreshed at times specified by the options opts.
Refresh[expr, None]
specifies that the value of expr should never automatically be refreshed.
  • The following options can be given:
TrackedSymbolsAutomaticsymbols whose changes trigger an update
UpdateIntervalInfinitytime interval at which to do updates
  • When Refresh[expr, opts] is evaluated inside a Dynamic, it gives the current value of expr, then specifies criteria for when the Dynamic should be updated.
  • When one Refresh appears inside another, the innermost Refresh takes precedence.
  • The setting UpdateInterval->t specifies that updating should be done at least every t seconds.
Make a dynamically updating clock:
Make a dynamically updating clock:
In[1]:=
Click for copyable input
Out[1]=
By default, Dynamic updates as fast as possible:
Control the update using TrackedSymbols and UpdateInterval:
Update y only when x updates in a Manipulate:
Use UpdateInterval to specify how often y should update:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team