11-05-2015 10:01 PM
Hey all. I'm fairly new to Labview. I'm wondering if there is anyway I can connect two bolean buttons to one LED control and depending on what button is pressed, I would like the LED to display a certain color. For example, if I pressed button one, I would want the LED to light up with a green color. If I pressed button 2 I would like the LED to light up with a Red color. How would I do this?
11-05-2015 11:49 PM - edited 11-05-2015 11:51 PM
No, you cannot connect two controls to a single indicator.
What if both buttons are false? What if both are true? What have you tried? What about a radio button?
11-06-2015 12:40 AM
Hey thanks for the reply! I'm going to try to put them into a case structure and then maybe I can change the color through the right click properties. Let me see if I can get it.
11-06-2015 01:31 AM - edited 11-06-2015 03:31 AM
Given two buttons, you can have four different positions (on/on, on/off, off/on, off/off). Since you have not defined what color should be displayed if both buttons are on or off, I suggest you use a radiobutton control. This ensures that exactly one button is ON at any given time.For the color indicator, just use the output of the radiobutton control to index into an array of colors.
11-06-2015 02:55 AM
Got it! Thanks!
11-06-2015 08:02 AM
@Help_Me_ wrote:
Hey all. I'm fairly new to Labview. I'm wondering if there is anyway I can connect two bolean buttons to one LED control and depending on what button is pressed, I would like the LED to display a certain color. For example, if I pressed button one, I would want the LED to light up with a green color. If I pressed button 2 I would like the LED to light up with a Red color. How would I do this?
If you back out to the main LabVIEW forum page, you'll see some links to some good LabVIEW learning stuff. I know there are other, even better links, but I don't have them on this computer. 😞