cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically change plot names

SOLVED
hiNI
Active Participant
Solved!

dynamically change plot names

Message contains an attachment

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

4 REPLIES 4
Highlighted
altenbach
Knight of NI

Re: dynamically change plot names

Message contains an image Message contains an attachment

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
hiNI
Active Participant

Re: dynamically change plot names

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.

Cory_K
Active Participant

Re: dynamically change plot names

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
Solution

Re: dynamically change plot names

Message contains an attachment

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