LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help connecting tow LEDs to a rocker switch

Hi all, first off, I am very, very new to Labview so please keep it simple or show me a block diagram. I have a problem which is probably a simple fix. I have a vertical rocker switch that controls a hydraulic ram in the up and down direction (this works). I have an indicator for the up command (in -mV) and an indicator for the down command (in +mV). I have two LEDs (1 for Up and 1 for down) to show if the rocker switch is in the up position or down position. My problem is I do not know how to wire the LEDs to the rocker switch to indicate if the rocker switch is in the up position then the "Up" LED will be illuminated and if the rocker switch is the down position the "Down" LED will be Illuminated. As of now I have nothing wired for the rocker switch and the LEDs. Help please. This is the last piece of the program and then it will be finished.

Thanks!!!  

Here is what I got so far. Like I said the actuator works

JoeFlow899_0-1723575394389.png

 

0 Kudos
Message 1 of 4
(266 Views)

Assuming the rocker up position is the TRUE position, wire the UP indicator directly to the rocker terminal.  For the DOWN indicator, add a NOT between the rocker terminal and the indicator terminal.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(260 Views)

Just wire the Boolean switch to the Up led and add an inverter to connect to the down LED. 

LVNinja_1-1723579283234.png

 

0 Kudos
Message 3 of 4
(225 Views)

Think what do you want to do, and let the how do I do it come later.

 

What:  You have a Boolean switch, and two LEDs.  One LED should light when the switch is in the On position and should turn off when the switch is in the Off position.  OK, wire that up.  Clearly needs a wire between the Switch and the On LED.  What about the Off LED?  Well, if the Switch is "On", the Off LED is (how can I say this ...) Not On.  How do you make a Boolean "wire" express its negation?  Pass it through a NOT function.

 

Oops -- in figuring out "What: you wanted to do, you stumbled upon "How" to do it.  More complex examples may take a few more pieces of paper ...

 

Bob Schor

0 Kudos
Message 4 of 4
(218 Views)