LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

updating plot names

Hello all,
I would like to programatically update the plot names on my x-y chart. I have used the Plot.Name and Active.Plot properties to do this. However, i have found that using 1 property node does not update correctly. When I use seperate property nodes, one for plot.name and one for active.plot, it updates correctly. Is there something I am overlooking in the dataflow?
I have attached a simple example of what i am observing.
0 Kudos
Message 1 of 8
(4,826 Views)
As for the Single Property node, wire the property node in the following sequence:

Select "ActPlot"
then write "Plot.Name"
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 2 of 8
(4,821 Views)
David,
Ian fung is perfectly right and does not deserve the single star that can be regarded as a poor rating.
You have to write the property nodes in the right order or you'll get unexpected results. In your single property node solution, you wrote the name before selecting the plot number. During the first run, the first plot name was written to the last saved index position (here was 3 +1), out of your view since you adjust the legend size before (remove this step before running the vi and see...). Then the second name is written at the apparently right position since you have incremented (naively... ;))the index number. Interestingly, at the second run, the first name is written using the last index position from the previous run, and appears as last legend name !
Just remove the increments that you added in an uncessfull attempt to correct this confusing behaviour from Ian's modified vi, and everything will be perfect.

And manage to add the right star number to poor Ian !!!
Chilly Charly    (aka CC)
Message 3 of 8
(4,809 Views)
Dear Charly,

Many thanks for your support 🙂 really!

We have a phrase saying that "One kind of rice feeds hundred kinds of people" 🙂
As long as I have support from people like you, I am still "Powered by LabVIEW" 😛

Cheers!
"LabVIEW Inside"
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 4 of 8
(4,801 Views)
thanks chilly charly,
It was perhaps a bit harsh for a 1 star rating, but I did ask for an explanation as to why this behaviour occurs. I would not have been the wiser to know that in all cases property nodes also execute from top to bottom.
Unfortunatly, I dont know how to take the poor rating back 😞
0 Kudos
Message 5 of 8
(4,802 Views)

DavidT wrote: ...Unfortunatly, I dont know how to take the poor rating back
Just add the lacking stars in another thread. Sure Ian will forgive you 🙂
Chilly Charly    (aka CC)
Message 6 of 8
(4,793 Views)
Dear David,

No worry about it.
In fact, you should be able to realise it by comparing your Single and Individual property write.

However, I am ok with it even if you don't rate my replies. Thanks!

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 7 of 8
(4,789 Views)
🙂 Charly,

You just made my day! 🙂
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 8 of 8
(4,785 Views)