LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear graph automatically

Hi!

I have a VI which shows me an XY graph. The problem is that I want it to be
cleared every time I start the program. How do I do it automatically?

Thanks, Victor
0 Kudos
Message 1 of 3
(2,835 Views)
First of all, before you save the vi do following:
- right-click the graph, data operations, clear graph.
- right-click the graph, data operations, make current value default.

During running, you can clear the graph programmically by writing empty arrays (arrays with length 0), in the format that is needed, to the x-y graph.

Hope this helps,
0 Kudos
Message 2 of 3
(2,835 Views)
> First of all, before you save the vi do following:
> - right-click the graph, data operations, clear graph.
> - right-click the graph, data operations, make current value default.
>
> During running, you can clear the graph programmically by writing
> empty arrays (arrays with length 0), in the format that is needed, to
> the x-y graph.


And one more technique that was added recently. If you go to the VI
Settings or VI Properties, there is an option to Clear Indicators before
running. This should be found on the Execution page and was added in
eith LV6 or LV6.1.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,835 Views)