LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Control Question

Here's one way.
0 Kudos
Message 11 of 18
(929 Views)

you added one control but I want two identical control change at the same time in two different pages.

 

0 Kudos
Message 12 of 18
(926 Views)
Yes I simulate it. Thanks very very much. I understand it now.
0 Kudos
Message 13 of 18
(920 Views)

Why use 2 controls when 1 will do? Since they are always the same value, why use multiple controls?

 

In any case, if you really insist, then use 2 and have a value change event for both of them as already mentioned. If you get stuck, post your code. Modify my example by adding the appropriate events and removing the tab value change event.

0 Kudos
Message 14 of 18
(919 Views)

I think if we add two event structures will be better than the current solution because of dark lines in the control.

 

I attached here what I did by adding two event structures but It didn't work. Could you look at it please?

 

 

0 Kudos
Message 15 of 18
(900 Views)

Hi Ahmad,

 

one event structure is all you need!

 

And if you want to have the same value in both knobs you should wire so...

Message Edited by GerdW on 04-21-2009 10:55 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 18
(897 Views)

If you had run my example, you would see that the black outline disappears when the VI is run.

 

You have just about everything wrong in your VI. You have two event structures when you only need one and you should wire knob 1 to knob 2's local variable and wire knob 2 to knob 1's local variable. Wiring the tab control to the locals makes no sense.

0 Kudos
Message 17 of 18
(894 Views)

Yes, Finally I have it now and it was simulated well.

 

I don't know How to thank you for all your help to solve my problem.

 

Thanks alot

 

Ahmad

0 Kudos
Message 18 of 18
(889 Views)