Keep updating a polar plot in a do-while loop
Sandbo
Hi,
I am trying to see how the polar plot of a piece of data will change with some small parameter change.
I wrote a small do-while loop such that in each successive run it will wait 0.1 sec, then it will repeat with another parameter.
Then I hope to see how the polar plot is changing with the successive runs.
Without the do-while loop, by just running the function and updating the data, the plot will get updated.
However now with the do-while loop, the plot is updated only if I stop the loop.
May I know if I can keep the plot being updated while the loop is running?
Try adding
DoUpdate
to the loop after changing the plot.
August 2, 2018 at 01:20 pm - Permalink
If you want to see the effect of changing parameters, another useful technique is to add a SetVariable control to the window. Create a SetVariable function (a template can be generated automatically from within the dialog that creates the control), and within this function use the value of the variable to update the wave that's displayed. It's a different, but quick and simple, way to investigate the effects of changing variables.
displayHelpTopic "Controls and Control Panels"
August 2, 2018 at 02:13 pm - Permalink
In reply to Try adding DoUpdate to… by jtigor
Thanks a lot, that's exactly what I am looking for!
August 2, 2018 at 02:19 pm - Permalink