LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the name of several plots of a graph/chart. (programmaticly)

Solved!
Go to solution

Heey everyone, title says it all.

 

I already tried using active plot with a forloop, but for some reason that doesnt work for me :s

Checkout the picture in the appendix, that`ll explains my problem.

 

In the block diagram you`ll see a stringarray : 

0 = name 1,

1 = name 2 and

2 = name 3.

 

For some wack reason the plotnames are set in a different order. Also checkout the program while using debugSmiley Tongue, then you`ll understand directly what my problem is.

 

Thank you!

--------------------------------------------------
Currently using labview 8.2.1
Download All
0 Kudos
Message 1 of 5
(3,029 Views)
Solution
Accepted by Grasman

Just a quick suggestion:
Switch the order. Put the 'active plot' on top, then change the plot name.

That should do the trick.

Cory K
Message 2 of 5
(3,025 Views)

You also do not need the 'array size' wired to the number of iterations in the For loop,

LabVIEW will autoiterate since you passed an array into the loop.

 

ex.PNG

Cory K
0 Kudos
Message 3 of 5
(3,022 Views)

omg how could i be so stupid Smiley Indifferent

 

Thanks alot Cory, works great now !

--------------------------------------------------
Currently using labview 8.2.1
0 Kudos
Message 4 of 5
(3,017 Views)

Haha, it has nothing to do with stupidity.

Sometimes you just overthink a problem so much that you miss the simple stuff Smiley Very Happy

Cory K
0 Kudos
Message 5 of 5
(3,010 Views)