Hot answers tagged

4

Your Manipulate expression works for me when I change your button specification to Button["Run", pts = {{0, 0}}; func[], Method -> "Queued"] However, I think it would better to replace your unnecessarily complicated Manipulate expression with a simple DynamicModule expression. DynamicModule[{pts = {{0, 0}}, a = 10, i = 1, func}, func[] := Do[Pause[....


3

Option 1: Use the UpdateInterval option to Dynamics, i.e., Dynamic[Plot[...],UpdateInterval->n,TrackedSymbols->{}] where n is measure in seconds. Here, UpdateInterval is how often Dynamic "manually" updates the expression. By default it will also update it any time one of the symbols is changed, so you also need to set TrackedSymbols->{}. ...


2

Though similar to @Jess's answer, I think this will work as you want. Dynamic[PLOT,UpdateInterval->10,TrackedSymbols->{}] Because UpdateInterval only set the Max Update interval!! So as your data is updating at a almost crazy speed, the plot will sense the change of your data and update crazily as well. You have to manually tell Dynamic: don't track ...


1

Although syntactically correct, your Manipulate expression is somewhat strange. Normally, one does not initialize a control in the first argument of a Manipulate expression, but I know of nothing in the literature of dynamic constructs that forbids it. On the other hand, because the order in which control variables are initialized is not clearly documented ...



Only top voted, non community-wiki answers of a minimum length are eligible