01-27-2009 12:18 PM
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...
Solved! Go to Solution.
01-27-2009 12:28 PM
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
01-27-2009 12:42 PM - edited 01-27-2009 12:42 PM
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.

01-27-2009 01:02 PM