LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I clear graph before running?

I waould like to clear graph before each run. I have read the help desks and conferred with the example, but have not be successful in creating a way to clear the graph before each run. Any help would be appreciated. Attached is a graphing program I created. I did not include the SubVIs, but believe process can still be understood. Thanks so much for your help.
0 Kudos
Message 1 of 3
(3,065 Views)
There are several ways to do this, two possibilities are show in the attached image (pick only one!)

Method 1: wire an empty cluster to a local variable of the graph
(Simply create a local variable, right-click ...create Constant. Make sure it executes before your main program, e.g. by using a sequence as shown)

Method 2: If the graph is empty by default, just create an invoke node and initialize it to defaults.
0 Kudos
Message 2 of 3
(3,057 Views)
The above instructions show how to programmatically clear the graph as a first step whenever the program is run.

If you want to clear the graph manually before actually running the program, simply right-click on the graph and select:

"Data Operations ... Clear graph" 🙂
0 Kudos
Message 3 of 3
(3,054 Views)