LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear waveform graph

Hello
 
I have read few posts telling how to clear a waveform graph by connecting an empty array to the graph. However, it didn't work for my application. There is something that I didn't understand I think.  
 
When I push on the "clear button", the only thing that is happening is that the graph stops showing to the screen. But it still there.
 
Any hints.
 
Thanks a lot
 
Marc
0 Kudos
Message 1 of 9
(9,585 Views)
Hi MArc,
 
You are using a Chart Graph which add new data on the history data.  To clear the Chart you can use the Property called History and than write your empty array, that will clear the history and reset your display.
 
Bye,
 
 
0 Kudos
Message 2 of 9
(9,576 Views)
Marc,

I have modified your vi to work as you intended.

If you care for an explanation, I'll provide one later.  Time is short!

Oops, problem with attaching.  I'll try again soon...

Message Edited by Novatron on 07-26-2006 04:29 PM

0 Kudos
Message 3 of 9
(9,572 Views)
Here you go, this should get you on the right track...

Take care,
Mike
0 Kudos
Message 4 of 9
(9,566 Views)
Hello ,
 
I've tested the file "main_marc2edit.vi" from Mike. Thanks by the way.
 
There's one problem thougth. When I push on the "reset" button (actually I should change the name to "Clear data", sorry for the confusion), instead of clearing the graph,  it makes the curve flash and the time data on the x-axis change.
 
What I want to do is to automatically clear the graph instead of right-clicking on the graph and after clicking on "Clear chart". Do I still need to use the history property node??
 
I hope this is clearer and sorry for the confusion.  
0 Kudos
Message 5 of 9
(9,559 Views)

here is a modifoed version, the reason it was flashing is because there was no data dependency and the reset buton was true which cleared the history but the simulate signal was still running also so it would produce then clear or clear and the produce therefore it was appearing to FLASH.

this is not the best solution but it should point you in hte right direction. There are many examples that ship with labview there is one called how to clear charts and graphs.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 9
(9,551 Views)
Are you want to clear the chart when the push button is pressed.You try this attachment.
 
By,
Kumar.
Message 7 of 9
(9,539 Views)
Hello everyone,
 
The last vi named main_marc.vi that Kumar sent works perfectly.
 
Joe, I wasn't able to open the vi you sent, so I don't know if it worked. 
 
Thanks to everyone
 
Marc
0 Kudos
Message 8 of 9
(9,523 Views)

Thanks!

0 Kudos
Message 9 of 9
(2,570 Views)