LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear chart graph programmatically

In my application I want to reset a chart graph programmatically.
I clear the graph by setting properity history to an empty array.
Update Mode is 'scope chart'.
It does clear all the data perfectly, but the gris is lost , too.
I would prefer to clear data only and have the grid visible always.

Any Hints?
Thanks a lot
Urs
0 Kudos
Message 1 of 3
(3,348 Views)
Look at the example How to Clear Charts & Graphs.vi that ships with LabView 6 and 7. If you show the grid on any of those charts or graphs (by formatting the X-Scale and/or Y-Scale), the grid remains visible when you press Clear. The example VI uses the History property to clear the charts and writes an empty array directly to the graphs to clear the graphs.
It sounds like you're taking the right approach, but you might be doing something more than you think. Look at the example, then post your VI if that doesn't help.
0 Kudos
Message 2 of 3
(3,348 Views)
Al,

thanks gor the great hint.
Looks like this a decision and not a bug. The grid is only deleted when
the update mode is set to 'sweep' and that makes sense somehow.

Al S schrieb:

>Look at the example How to Clear Charts & Graphs.vi that ships with
>LabView 6 and 7. If you show the grid on any of those charts or
>graphs (by formatting the X-Scale and/or Y-Scale), the grid remains
>visible when you press Clear. The example VI uses the History
>property to clear the charts and writes an empty array directly to the
>graphs to clear the graphs.
>It sounds like you're taking the right approach, but you might be
>doing something more than you think. Look at the example, then post
>your VI if that doesn't help.
>
>
0 Kudos
Message 3 of 3
(3,348 Views)