LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

buttons dans les onglets

salut je suis debutant j'utlise labview 8.5

mon probleme c'est jaime bien a travers  les buttons je passe dans les differents pages

voila mon exemple:


 jattend vous reponse  avec plaisir

merci en avance  

0 Kudos
Message 1 of 14
(3,263 Views)

Usually, you want to keep it simple. To go between pages, we use the tabs directly, no booleans needed at all. 🙂

90%+ less code! 😉

 

Imagine the nightmare with your code if you later want to add another tab. Not very scaleable!

 

If you really want to use buttons, place them outside them tab structure so you only need four of them or even use an array of four buttons. (You can also float them over the tab structure).

Message 2 of 14
(3,246 Views)

merci pour votre reponse

pas de probleme pour moi les buttons dans le tab control ou a l'exterieure .si par exemple les buttons sont à l'exterieure  comment sera la solution?"j'espere que le prob est claire

merci encore  

0 Kudos
Message 3 of 14
(3,229 Views)

kimokana wrote:

j'espere que le prob est claire


Sorry, my French is really rusty. 😉

 

If you don't need to operate the tabs directly, but only with the buttons, you could make the tab control an indicator and write the desired state to it. You could even hide the tabs.

 

Otherwise, use a local variable of the tab control, for example as in the sttached small example (8.5.1).

BTW: it is a really bad idea to have multiple controls with the same name. This makes the code very difficult to troubleshoot.
Message Edited by altenbach on 08-24-2008 01:09 PM
Message 4 of 14
(3,222 Views)

Smiley Wink

 

i want to use the button  outside them tab

 the solution? 

thankyou for your answer  

0 Kudos
Message 5 of 14
(3,216 Views)
Just move them outside the tabs....They can be anywhere on the panel.
Message 6 of 14
(3,206 Views)

i am kimokana

thank you for your answer the probleme is how to programmed the button

thankyou

please help me

0 Kudos
Message 7 of 14
(3,177 Views)

informatiquegroupe wrote:

please help me


 

I use an event structure to switch the tab structure when one of the buttons is pressed while the VI is running.

 

The buttons are thus "programmed", at least by my definition. :).

 

Is there any other problem that you still need to solve?

Message 8 of 14
(3,175 Views)

Sorry, my english is really rusty

 

i don't inderstand

please give me an exemple for 3 button and 3 pages

 

i m waiting

thank you

0 Kudos
Message 9 of 14
(3,164 Views)
If I follow the conversation (my French never had enough iron to rust :smileyvery-happy:), have a look at the attached example.
Message Edited by lmtis on 08-25-2008 06:23 AM
Jim

LV 2020
Message 10 of 14
(3,148 Views)