We are trying to do something that should be very simple. We are trying to read a switch hooked up to module 4, channel 1, and based on its value turn on an LED connected to module 4 channel 6.
The switch is wired from signal to ground so that an open switch should return "True" and closed should return "False". By using a multi-meter, I have verified that the signal line switches between 4 volts and ground with the switch open, then closed.
The LED is wired from the +5v line to signal, so that the signal pin provides the ground for the LED. I verified that the LED works by connecting it between +5v and Gnd lines on the digital breakout board.
This is all basic stuff we did on last years controller successfully. The problem is that the Labview program doesn't see the switch signal pin changing at all, and the signal line connected to the LED never changes from 4.0v.
The code for the autonomous portion is included below. Someone please tell me what simple thing we have overlooked. I know I am going to feel stupid when I see the answer, but we have stared at this for 2 days now without seeing what is wrong. We know it is running the autonomous code as the numeric indicator increments as expected. Neither the boolean indicator or the LED ever changes state.
Thanks,