LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reset plot names

Hi,

i am using a Graph XY.

I have a problem with the name of the plots: when i turn OFF the VI and then turn it ON the last plot names remain on the Graph XY.

How could i reset the plot names to none when i turn ON the VI ?
Samer,
Message 1 of 7
(5,727 Views)
Hi Samer,

you can set a name for each plot using a property node ("plot.name"). Use this before you open the front panel...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(5,726 Views)
the property node "plot.name" is relative just for the active plot so i cannot reset or name all the plot names...

The problem is that when i run the VI i already find the old plot names from the last run. please find enclosed my VI.

would you please send me a VI to explain me ?
Samer,
Message 3 of 7
(5,706 Views)
Hi Samer,

"the property node "plot.name" is relative just for the active plot" - yes, and you can name all plots by using a FOR loop as you did...

What else do you want to do?

"
The problem is that when i run the VI i already find the old plot names from the last run."
This is true for all indicators in LabView, their value is kept in memory as long as the vi stays in memory.
You can hide the front panel (property node!), change the plot names and show the frontpanel (in that order) to avoid showing old names before they get written from your vi...
Other way is to set the subvi to not open on call (window appearance settings), make all needed outputs on frontpanel and then show the frontpanel. Don't forget to hide the frontpanel before exiting the vi...




Message Edited by GerdW on 06-24-2008 05:19 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(5,694 Views)

Hi GerdW,

 

Sorry for hijacking soimebody else's thread, but he problem is directly related. I am using ActPlot of an XY Graph to initialize the plot specs. However, for example in your attached code, when the ActPlot number becomes more than 6, say 32, it gives an error saying Invalid Property Value. How I can get rid of this error?

 

Thank you,

-- Reza

 

0 Kudos
Message 5 of 7
(5,256 Views)

Hi Reza,

 

when there is no data for the plot then you can't set a name for it. As easy as it is...

 

So wire some data first (some "empty" plots [maybe filled with NaNs] will do too, then name the plots using property nodes...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(5,254 Views)
Thanks again!
0 Kudos
Message 7 of 7
(5,234 Views)