LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resest button for XY graph

Attached is a block diagram that is still a little bit of a work in progress, it is going to be a program for calibrating accelerometers and sound level meters.  The thing is, for each device there may be any number of axis or filter bands to test, so the routine that is shown will have to be run several times.  The way it is written now, the second time I run the routine, the XY graph (hilighted in red) that plots the data will still have the previous plot on it.  There is a "reset" boolean input to the XY graph and if I wire a true constant to it, then it resets after each individual data point, so that won't work.  I need a way to reset the XY graph with a button that I can push on the front panel, possibly in the producer loop, so that I can clear the graph and save the next run to a new file.  I would rather not have to create multiple XY graphs that clutter up my front panel either.

0 Kudos
Message 1 of 5
(2,727 Views)

What if you simply wire a button to the reset terminal? With latch action it will read TRUE once, reset and switch back.

Message 2 of 5
(2,718 Views)

Ha, sometimes it's hard to see the simplest solutions.  That sounds like it should work, thanks.

0 Kudos
Message 3 of 5
(2,711 Views)

You can also use the in =0? function from the comparison palette to the reset input of the graph. Connect the while loop index to the input of the function.

 

Ben64

Message 4 of 5
(2,697 Views)

Thanks Ben64, thats another good idea I didn't even think of.

0 Kudos
Message 5 of 5
(2,693 Views)