LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically change plot names

Solved!
Go to solution

Hello,

 

How can I dynamically change the names of different plots on a single graph.  I would like to do it on the attached VI.

 

Thanks,

hiNi

0 Kudos
Message 1 of 5
(3,826 Views)

Use active plot and plot name properties. For example if you had three plots and an array of three names, you could do the following:

 

Message Edited by altenbach on 02-13-2009 10:41 AM
Message 2 of 5
(3,823 Views)

THANKS for the input!

 

How do you go about initializing the plot names?  That is, if I run the whole program a second time, the names that was left on the plots on the previous run, still shows up until the current iteration overwrites it.  If I have less iterations than before, I am left will 'residual' plot names.

 

I appreciate all your help and time.

 

hiNi.

0 Kudos
Message 3 of 5
(3,812 Views)

You would have them initialize to some value outside of the loop.

Write the names of the plots first.
Then go to your loop and change them whenever necessary.


That way, each time the VI runs, the plots will begin with the correct name.

Cory K
Message 4 of 5
(3,807 Views)
Solution
Accepted by topic author hiNI

Hello hiNI,

 

I hope you have understood the  excelent explanation from Cory. Otherwise, you can just have a look at the following image.

I have posted the image because I assume that you do not LV8.6 

Message 5 of 5
(3,790 Views)