07-10-2009 03:27 AM
Good morning
I have doubt in clearing a chart programmatically
I need to display the the values in chart and clear the chart,again i need to display in the next cycle
I am able to display values and clear programmatically(passing some empty array values), but not able to diplay values in next cycle
Pls give me some suggestions
07-10-2009 03:39 AM
Your way of working sounds good to me
Send data to chart to display it
Send empty array to chart to clear it
Send new data to chart to display it
Maybe you didn't program it well
Can you post your VI so that we can have a look at it?
07-10-2009 03:48 AM
Thanks Alain
I have atached my eg program
07-10-2009 04:24 AM
Since you send only one point to the chart, you can't display a line, so change the plot style of the plot to points or keep the line style plot but generate multiple points using a for loop with for example 15 iterations.
Both ways will do, with the first one you will see a unique point every 2 seconds, with the second one you will see a new line every two seconds.
You don't need to wire the dimesion size connector of the Initialize array vi.
07-10-2009 05:38 AM
07-10-2009 06:34 AM
One more question
If i want clear the chart only after the time scale reached 100, how can i do this
Thanks
07-10-2009 06:40 AM
If i want clear the chart only after the time scale reached 100, how can i do this
Consider changing the ADVANCED - UPDATE MODE to SCOPE chart.
That will clear automatically when your data gets to the right side, and start over.
Otherwise, clear it anytime you like by sending an empty array of points to your chart's HISTORY DATA property.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
07-10-2009 07:00 AM