View Single Post
  #1   Spotlight this post!  
Unread 06-02-2015, 08:04
eneubec1 eneubec1 is offline
Registered User
FRC #5090 (Torque-Nados)
Team Role: Coach
 
Join Date: Nov 2013
Rookie Year: 2014
Location: michigan
Posts: 37
eneubec1 is an unknown quantity at this point
Help with debugging read of DIO

We have some code that we think should work but when we probe it on the test bench the DIO logic never changes when the limit switch is pressed. We confirmed the wiring is proper with a volt meter.

We are trying to read to limit switches to determine when our elevator has reached the top and the bottom so we can turn off the elevator motor. This is our FIRST experience with using limit switches and think we are missing something basic. The Begin.VI also has a simple schematic for how we wired the switch.

Any thoughts?
Do we have to put any code in the periodic task to make reading a DIO work?

I have attached our Begin VI and Teleop VI to this thread for reference.
Attached Files
File Type: vi Begin.vi (20.8 KB, 5 views)
File Type: vi Teleop.vi (22.3 KB, 1 views)
Reply With Quote