08-13-2024 01:58 PM
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
08-13-2024 02:10 PM
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.
08-13-2024 03:01 PM
Just wire the Boolean switch to the Up led and add an inverter to connect to the down LED.
08-13-2024 03:45 PM
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