Go to Post What if, each alliance has a pile of AndyMark equipment in front of them. They then have 2:00 minutes to assemble said equipment, and build a working robot that will race to the other side and grab the other alliance's flag. - Pjohn1959 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2015, 21:22
hawthornewt hawthornewt is offline
Registered User
FRC #5526
 
Join Date: Feb 2015
Location: Mexico
Posts: 2
hawthornewt is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2015, 21:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming Limit Switches

I've been pointing people to Team 358's collection of examples a lot lately. The Limit Switch example seems written especially for you.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2015, 08:46
hawthornewt hawthornewt is offline
Registered User
FRC #5526
 
Join Date: Feb 2015
Location: Mexico
Posts: 2
hawthornewt is an unknown quantity at this point
Re: Programming Limit Switches

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.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2015, 09:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming Limit Switches

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/sh...d.php?t=134319 is a recent thread about limit switches. The Search feature of the Chief Delphi forums can help you find others.

Last edited by Alan Anderson : 11-02-2015 at 09:14.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi