LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

link boolean buttons in different tab control

Solved!
Go to solution

Well guys, I know is a very easy question but I don't know how to make it!

 

I have a button that control something in a tab control, and I need to put the same button, doing the same function in another tab control, how can i do that?

 

Like link each other.. because I need if one is True the other have to be true too

same for False!

 

 

Thanks

0 Kudos
Message 1 of 16
(4,720 Views)
You could use Local variables in an Event Structure.  Although I'd prefer using only one button outside the Tab Control if they control the same function.

Example_VI_BD.png

PS - there's a Boolean2 Value Change event writing its value to Boolean's Local variable.
Message Edited by jcarmody on 01-13-2010 07:28 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 16
(4,711 Views)

A simple soluce is to not include your 2 buttons in the tab control but use only one which is outside the tab control.

 

Place it on the front panel in side of tab control then move it with arrows on top of tab control => so only one button to drive...

 

 

Other soluce, use local variable of your buttons with detection of value change If button 1 change, write the value in the local variable of button 2 and invert in the other case.

 

Time to write and jcarmody have already explain

Message Edité par J.DECHET le 01-13-2010 01:32 PM
0 Kudos
Message 3 of 16
(4,706 Views)

J.DECHET wrote:

 

Time to write and jcarmody have already explain

 


 

It's always a race :).

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 16
(4,702 Views)

Well guys, I didn't understand! Sorry

 

But I have to use tab control, because it's like 2 different programs at the same....

and I cant put the button out of tab control, because it is a full window program and I already used all the window...

 

Could you make an example for me? because only in the image I didn't understand well

 

I'm using LB 8.6, so I can't drag and drop!

 

and if I need to change the other button, the first one will change too? or only if I change the first, the second change?

 

Thanks

Message Edited by EduU on 01-13-2010 06:46 AM
Message Edited by EduU on 01-13-2010 06:49 AM
0 Kudos
Message 5 of 16
(4,698 Views)
Solution
Accepted by EduU
You haven't tried a local variable in an Event Structure, have you?  I've posted my code as a VI (LV 8.2) (my original was a Snippet that contained the code).
Message Edited by jcarmody on 01-13-2010 07:46 AM
Message Edited by jcarmody on 01-13-2010 07:48 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 6 of 16
(4,690 Views)

I am sceptic... could you give us the corresponding part of your code?

 

Local variable seem to be appropiate in your case. or are you sure that your button are in switch mode and not as latch?

0 Kudos
Message 7 of 16
(4,688 Views)

Hi EduU,

 

you can put that button on top of the tab control!

Move it (using the mouse) outside of the tab, then move it (using cursor keys!) over the tab control. Now the button is on top (or can be made so with the order button in the menu) and is visible in each tab page...

Best regards,
GerdW


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

Oh, now I understand!

It works perfectly

 

Thanks guys!

 

One day, I will be like you! haha

next week I will do the basic I & II

\o/

0 Kudos
Message 9 of 16
(4,673 Views)

Well, I was doing here guys

the problem is I have 8 buttons in each page of tab control

so 16 in total, can I make only one event for all buttons?

or I have to make 8 different events? one for each par of buttons?

 

all buttons make the same function!

 

Thanks

0 Kudos
Message 10 of 16
(4,650 Views)