ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear xy graph

I would like to know how clear a XY graph.
I heard something about to send an empty array.
How to do it?

Thanks
0 Kudos
Message 1 of 2
(2,904 Views)
Follow these steps:

1) Clear the graph on the front panel (right click on graph and select Data Operations>Clear graph).
2) Create a local variable from the graph (right click on graph and select Create>Local Variable).
3) Find this local variable in the wiring diagram, and create constant (right click on it and select Create>Constant). This will create an empty array for you in the correct format.
4) You can then put this local variable and constant in the diagram where you want the graph to be cleared.

I have included an example (in LV 6.0). Let me know if you have any problems.

Kim
0 Kudos
Message 2 of 2
(2,904 Views)