12-13-2010 06:46 AM
Hello,
I would like to create a vi containing a while loop, however I want charts data to be updated every second. Which is the proper way to do it so?
Thank you in advance
Solved! Go to Solution.
12-13-2010 06:52 AM
Hi,
You can make 2 states, wait and update. In wait state, you can put 1 sec delay and in update mode you can update chart.
I think this is the simple way. You can have another loop acquiring/generating data which you want to display on the chart.
12-13-2010 07:01 AM
Hello gak,
Thank you for your reply. Could you please be more specific or attach an example vi.
Best regards
12-13-2010 07:06 AM - edited 12-13-2010 07:06 AM
I'm not sure to understand what you mean...
Is your while loop acquiring/generating data at more than 1Hz?
If yes, I assume you want to update the chart only each 10 or 100 loop iteration.
Here is a quick example (documented in LV 8.6).
Hope it help
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
12-13-2010 07:48 AM
Dear Titou,
Thank you very much for your suggestion.
Best regards