LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two buttons that follow each other

Here's another easy one,
I have a tabbed pane and I want to have a button in every tab that does the same thing.

When you turn it off in one tab I want it to go off in all the other etc.

Is this possible and how would it be done?

The attached vi is just the tabbed pane and a few buttons that I want to follow eachother.

Thanks

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 1 of 14
(4,298 Views)
I would use the same button on each page of the tab. The key to having the same button appear on every page of the tab control is to move on top of the tab and not be part of the tab. You do this by creating it off the tab control and then moving it on top with the cursor arrow keys and not dragging it with the mouse. When the VI is not running, you will see a shadow around the control. The shadow disappears when the VI runs. See the modified attachment.
0 Kudos
Message 2 of 14
(4,288 Views)
You can make your life miserable and do some elaborate code with local variables ...

OR, place a single boolean outside the tab structure. You can place it next to it or you could even "float" it over the tab structure. To float it, place it next to the tab structure, select it, them move it using only the cursor keys back over the tab structure (No mouse!). It will cast a shadow in edit mode to show that it is above. The shadow will dosappear when the VI is running.
0 Kudos
Message 3 of 14
(4,287 Views)
This is getting a little weird.:)How many times have we recently posted the same answer, to the same question, at the same time?
0 Kudos
Message 4 of 14
(4,293 Views)
I think Dennis and Altenbach are long lost twin brothers separated at birth with a psychic connection going between their brains.
- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 14
(4,272 Views)
Sorry I was a few minutes late with my post above. I was eating breakfast and reading the newspaper at the same time... 😉

My feelings in this matter are best expressed with a VI, see attached (LabVIEW 7.0). 😄
Message 6 of 14
(4,264 Views)
I actually have 5 tabs in my real program and I want it to appear on 2 of them...

I take it this would be difficult?

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 7 of 14
(4,263 Views)
Thats the most entertaining vi I have ever seen.

Cason Clagg
SwRI
LabView 7.1, Windows XP
0 Kudos
Message 8 of 14
(4,263 Views)
Nothing in LabVIEW is difficult. You could e.g. do it using an event structure and some local variables.

In your title, you talk about buttons, which are typically controls. Thus I have replaced them with controls.

The situation is MUCH easier if you just want two indicators that show the same value. Just wire both to the same wire on the diagram. That's all! 😉

Message Edited by altenbach on 06-24-2005 12:39 PM

0 Kudos
Message 9 of 14
(4,235 Views)
Great trick, Altenbach. Almost had me fooled. One question, how do you convert a sound byte (.wav or .mp3 or whatever) into an array of numeric values?
- tbob

Inventor of the WORM Global
0 Kudos
Message 10 of 14
(4,090 Views)