LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear PDA graph

Does anybody hava an example of how to clear a PDA graph?, I tryed to do it using the "clear PDA chart VI" that is supposed to clear charts and graphs (as the help says) but i am just getting errors.
Any suggestion?
0 Kudos
Message 1 of 4
(4,069 Views)
First, A graph does not store any values so if you simply clear the array you are wiring into the graph it will also clear it. A chart actually stores values you run into it thats why it actually needs to be cleared. Additionally, this is why you can feed a chart a single value whereas a graph requires as array.

Alternatively, but somewhat unnesessarily, a graph also be cleared by going on your block diagram and right clicking on the graph icon Create>>Property Node. Next, click on 'Visible' and select 'Value'. Right click on 'Value' and goto Create>>Constant. This will wire and empty array to the value property which will clear the graph. Remember, if you put this is your main loop it will clear the graph on every iteration.
0 Kudos
Message 2 of 4
(4,069 Views)
This is correct except that LabVIEW PDA 7.1 does not have support for property nodes. In order to provide functionality commonly done by property nodes, additional VIs are provided on the palette such as "Clear PDA Chart". NIBOUND is correct that a writing an empty array to a graph will 'clear' it. Instead of a property node, a local variable to the graph can be used. I've attached two simple examples which should clear things up.

Regards,

JR A.
Download All
0 Kudos
Message 3 of 4
(4,069 Views)
That is right, Labview PDA does not support property nodes. Writing an empty array to the graph works, that's the way to do it. Thanks
0 Kudos
Message 4 of 4
(4,069 Views)