LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to integrate 2 buttons

Solved!
Go to solution

Hi,

I tried to integrate two buttons. I mean: when I switch on first button it will disappear and the second appear, when I switch on the second button- first is shown and the second is hidden.

Please help:)

Regards,

Mike

0 Kudos
Message 1 of 12
(3,320 Views)

Look into Property Nodes, specifically the Visible property.

 

Lynn

0 Kudos
Message 2 of 12
(3,318 Views)

The problem is that I know how to change visible, but I don't know how to integrate both of buttons.

I tried to do it but it's not working;/

I attached my vi (lv 8.6 and lv2010)

Download All
0 Kudos
Message 3 of 12
(3,307 Views)

Take a look at the attached vi

=====================
LabVIEW 2012


Message 4 of 12
(3,306 Views)

Ohhhh I see that it's working and I know that I shouldn't moan but is there no way to done it without event structure? I don't want to use it cause I'm running LabView continuosly and it's make problems (program don't want to leave this structure and I can't use other buttons, swtiches etc)

Please don't shout that I'm using this mode:)

0 Kudos
Message 5 of 12
(3,292 Views)
You could poll for changes in a while loop. I won't shout about run continuous but it is intended for development and debug only. Even so it has limited usefulness. In fact I don't even know of a reasonable use except maybe for some type of benchmarking. If you really want to improve your LabVIEW skills you should start by trying to avoid run continuous. But that is totally your call.
=====================
LabVIEW 2012


0 Kudos
Message 6 of 12
(3,290 Views)

Use a radiobutton control. Customize the button so the false case is transparent.

0 Kudos
Message 7 of 12
(3,250 Views)
Solution
Accepted by topic author MeeHow

@MeeHow wrote:

I don't want to use it cause I'm running LabView continuosly and it's make problems (program don't want to leave this structure and I can't use other buttons, swtiches etc)


One of the first things to learn is that is is spelled "LabVIEW" and not "LabView". 😄

 

So if running continuously is making problems, why do you insist on using this debugging tool? Why can't you use "other button" or"swtiches"? What structure can't you leave? You might have some simple beginners problems that would be very easy to solve if you give us more details.

 

Anyway, here's my radiobutton solution. I also attached a simple VI using it. Look ma, no code!

Download All
Message 8 of 12
(3,247 Views)
Altenbach's suggestion to use radio buttons is probably the best approach. I really do not like hidden controls. In just about every situation in which I see them used there is a better UI design. Maybe a tab panel or a subpanel or radio button or whatever. You can even just use one button and programatically change the caption each time it is pressed.
=====================
LabVIEW 2012


Message 9 of 12
(3,236 Views)

Thanks for your solution:) 

The problem is that my program is quite big and consist of about 20 subvi's so it'll be big problem to fix all of them;/First thing was reading from measurement file and errors like "file ends" or something so I decided to use running continuously (now I know it was mistake)

Of course I can put all my blocks to while loop but it's good solution I thinkSmiley Tongue 

But I'll remember to not use this mode in the future!

Thaks all of you!

 

When I pass MA thesis I can attached my program if you want infarct 😉

0 Kudos
Message 10 of 12
(3,233 Views)