08-11-2006 10:08 AM
08-11-2006 10:31 AM
You can use the property node and wire an empty array to the "History Data" property for Waveform Charts.
For waveform graphs --- use property nodes and wire an empty array to the "Value" property. (See attached VI)
02-09-2007 03:01 PM
06-25-2013 09:50 AM
I like your answer! It's very simple
06-25-2013 09:54 AM
Well, things were much simpler back in 2007.
06-11-2015 08:48 AM
"also under file<<vi properties<<execution is "clear indicators when called"
check the box and this clears everything when you push the run button"
Unfortunatelly this clears the graph at the starting point but as soon as first result is there you can also see all old graphs from he previous several runs
09-30-2017 03:20 AM
Hi km76107,
Thank you for your sharing.
I have tried on the solution you shared. But the graph from previous iteration will appear when I run for second looping. Do you mind to share with me how to clear the data logging in the graph when running the next loop? As I tried on your solution, whenever Clear button is pressed, the graph will be cleared. However, the graph will be reappear when the Clear button is pressed again. From this, I think the data still store in the indicator. I'm looking forward to receive your advice.
Thank you.
09-30-2017 05:29 AM
Hi jason91,
that answer is 11(!) years old. And it still works perfectly.
If something from previous iterations shows up it is because of your code. Do you mind sharing your VI with us?
Regards, Jens
09-30-2017 01:36 PM
@jason91 wrote:
As I tried on your solution, whenever Clear button is pressed, the graph will be cleared. However, the graph will be reappear when the Clear button is pressed again. From this, I think the data still store in the indicator. I'm looking forward to receive your advice..
Obviously, you are doing somethings wrong, but we cannot troubleshoot without seeing some code.
Is this a graph or a chart? Where is the data kept? (e.g. if the data is in a shift register, you also need to clear that data). What is the mechanical action of your "clear" button? How is the graph terminal connected? Do you have race conditions (e.g. due to local variable over-use)?
10-01-2017 05:21 AM
Hi,
fin da small vi attached ..... graphmxy_new.vi
This is my typical Tool for appending X/Y graphs ... Charts I do not like much - in many cases the functionality is limited.
In order to be "small" I have copied an picture of working FrontPanel and its BlockDiagram inside the BlockDiagram of attached vi.
Maybe you will not understand the whole sweep vi - but concentrate on the usage of this small yellow sub.vi
It is now compiled in LV2017 - in case you need an older version - let me know.
best Regards,
wha