Programming Limit Switches

Good day, Team 5526 greets you and needs your help:

We’re using an elevator system for out robot this year however we need to program two limit switches, one on top and one at the bottom of the elevator range in case the driver exceeds too much and prevent the elevator’s pulley from breaking. The pulley moves with a motor attached, however I just want the top limit switch to stop it from moving up, and the lower limit switch to stop it from moving down. I don’t want it to just shut down the machine. We’re rookies, even though we do have fair knowledge about LabView, we have no clue how to program Limit Switches.

Help would be highly appreciated. :slight_smile:

I’ve been pointing people to Team 358’s collection of examples a lot lately. The Limit Switch example seems written especially for you.

Thanks for the link, however I dislike how there’s no real explanation or a clue of how to apply it to Begin.vi. I currently do not have the code in my hands but I’ll try it today afternoon.

The Digital Input Example earlier on the page shows how to open a digital input in Begin.

Really, it’s the same way you open and use any hardware resource using the WPI library. The built-in FRC examples and tutorials and LabVIEW help should be good enough to help you do this. At what point are they losing you? Where does it not give the detail you need in order to follow it? Your input can help make the documentation better.

If you want an explanation of how it works, http://www.chiefdelphi.com/forums/showthread.php?t=134319 is a recent thread about limit switches. The Search feature of the Chief Delphi forums can help you find others.