LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to light up two separate LEDS using two or one digital outputs

Solved!
Go to solution

We are using the NI cDAQ 9172 with one input and one output module hooked up. I have my program set up with 2 input lines and one output line but I think I need two output lines, Anyways using my boolean switches and digital logic gates I wired up three boolean switches to just play around with possible inputs to turn on the LEDs. The way I have it set up only one LED is lighting up but it is recognizing that there is 2 LEDS so I dont know what I need to add or change, ill attach a copy of my program for you to look at...

 

 

0 Kudos
Message 1 of 4
(5,075 Views)

sorry I forgot to put the LED indicators on because Im actually applying this program to a breadboard with LEDS so I can apply testing situations... heres the new attachment of program

0 Kudos
Message 2 of 4
(5,073 Views)

I'm not sure what you are attempting here. Your logic requires two boolean switches to be set, either 1 AND 2 or 2 AND 3 or 1 ANS 3, but then produces a single boolean output as a result. Passing it through "convert from Dynamic Data" to produce an array (not sure why you did this, the "build array" function will is probably more appropriate), but the array will have only one element, the result of whether all those AND's and OR's are met. If what you want is to pass
 through the switches to the output, then wire the switches to a build array (expanded to the array size needed). There is no way to know which switches are pressed with your logic, only that a required pair is enabled.

Message Edited by LV_Pro on 01-27-2009 01:42 PM
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 3 of 4
(5,064 Views)
Solution
Accepted by topic author cmhand
Thanks for the help I figured out the build array and got them both to light up...like i said im completely new to this
0 Kudos
Message 4 of 4
(5,052 Views)