取消
显示结果 
搜索替代 
您的意思是: 

Tab Control Question

Here's one way.
0 项奖励
11 条消息(共 18 条)
1,202 次查看

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

 

0 项奖励
12 条消息(共 18 条)
1,199 次查看
Yes I simulate it. Thanks very very much. I understand it now.
0 项奖励
13 条消息(共 18 条)
1,193 次查看

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 项奖励
14 条消息(共 18 条)
1,192 次查看

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 项奖励
15 条消息(共 18 条)
1,173 次查看

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 项奖励
16 条消息(共 18 条)
1,170 次查看

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 项奖励
17 条消息(共 18 条)
1,167 次查看

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 项奖励
18 条消息(共 18 条)
1,162 次查看