LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart - problem with stack

Solved!
Go to solution

Hello,

Ive got 3 problems with stack plots:

1. In the legend, the first value of table is the last one, why?

2. Always when i remove one value(in this case i turn off button), the last chart is remove

3. When I turn off the second button(rest is on), the plot name in legend is doubled.

Does anyone have an idea what i can do with this?

 

thanks for any answers.

 

 

0 Kudos
Message 1 of 7
(2,717 Views)

Propery nodes execute top to bottom, so you first need to set the active plot and then the name, not the other way around. Change the order of the two properties.

 

(sorry, I haven't looked at the rest of your code)

0 Kudos
Message 2 of 7
(2,693 Views)

Ok thanks, that was the one problem. The second is:

I dont know how to off one plot from the middle of stack.

I belive the problem is in this part(attached png), because when i off one button, the number of total is decrement. But i still have no idea what to do to avoid it.

0 Kudos
Message 3 of 7
(2,680 Views)

Try something like this:

 

 

0 Kudos
Message 4 of 7
(2,660 Views)

Nope, still the same.
I have added case structure to show the problem.
nr. chart - value
0 - 0
1 - 1
2 - 2
3 - 3
for example when I turn off button nr 2, i lost plot nr 3... In the legend it looks alright

 

That's so annoying...

0 Kudos
Message 5 of 7
(2,639 Views)
Solution
Accepted by topic author Mirasoul

Well, you simply need to code it differently.

 

Try this:

Message 6 of 7
(2,633 Views)

That`s what I wanted. Thanks a lot!

0 Kudos
Message 7 of 7
(2,630 Views)