06-17-2013 09:43 AM
Hi, I'm new to using labview and I want to create a simple program such that when a user selects a button another button would show up.
i.e. If user selects LED, then on the front panel 2 other buttons would appear to prompt the user which LED should be on. If the user selects motor, then 3 buttons would show on the front panel whether it is turning left, right or to stop it.
I was wondering if this is possible. If so, I was wondering how to go about doing this.
Thanks for the help in advance!
Solved! Go to Solution.
06-17-2013 09:52 AM - edited 06-17-2013 09:57 AM
@bluexdestination wrote:
Hi, I'm new to using labview and I want to create a simple program such that when a user selects a button another button would show up.
i.e. If user selects LED, then on the front panel 2 other buttons would appear to prompt the user which LED should be on. If the user selects motor, then 3 buttons would show on the front panel whether it is turning left, right or to stop it.
I was wondering if this is possible. If so, I was wondering how to go about doing this.
Thanks for the help in advance!
if you rt click on the buttons you wish to show on the front panel, create>property node.... there is a property call 'visible'. make these false upon initialization and then true when your LED or Motor buttons are true
06-17-2013 09:53 AM
Yes. You would use property nodes of those other controls to set their visibility.
06-17-2013 10:03 AM - edited 06-17-2013 10:16 AM
You could start working out with something like this. Hide the LED2 & LED 3 Controls in the front panel. When you start the program and click LED, the Othertwo buttons become visible.
06-17-2013 10:52 AM
Equal to True? That's a Rube Goldberg. Just wire the boolean through.
Assuming the other cases of the case structure have the same property nodes and just the other boolean value, then that is all a Rube Goldberg also. Just wire th value into the property nodes directly, or wire a NOT function in in case you need to change True to False or False to True.
06-17-2013 11:09 AM
this all depends on whether it is a latch or switch
06-17-2013 11:11 AM
@apok wrote:
this all depends on whether it is a latch or switch
How do you figure that? Please explain further.
06-17-2013 12:16 PM
@RavensFan wrote:
@apok wrote:
this all depends on whether it is a latch or switch
How do you figure that? Please explain further.
ouch,my mistake...was not thinking
note to self: cut back on coffee
06-18-2013 01:35 AM
The LED is a Switch when released. No latch. thanks RavensFan for pointing out the Rube Goldberg. I guess i was a bit high on coffee yesterday 😛
06-18-2013 08:39 AM
Thanks for all the help guys! 🙂