Go to Post We can read about torque and speed in books, we can build a robot and drive it, but determination and character are built by time and encouragement, not just by studying. - Eugenia Gabrielov [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 11-02-2015, 19:01
Minerbotics4827 Minerbotics4827 is offline
Registered User
FRC #4827
 
Join Date: Feb 2015
Location: Michigan
Posts: 6
Minerbotics4827 is an unknown quantity at this point
Re: Basic Limit Switch

I've figured out how to setup the normal limit switch, however, I am not sure on how to set it up so you can have a button override what the switch does when pressed. Someone helped us set up something similar last year at competition, but our old code got messed up.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2015, 23:10
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 55
mshafer1 is an unknown quantity at this point
Re: Basic Limit Switch

Quote:
Originally Posted by Minerbotics4827 View Post
I've figured out how to setup the normal limit switch, however, I am not sure on how to set it up so you can have a button override what the switch does when pressed. Someone helped us set up something similar last year at competition, but our old code got messed up.
The attached file is only meant to be suggestive, but would accomplish the task of an override.
It assumes a limit switch that is true if not, remove the not gate.

Basically an override boils down to the limit is not pressed or the override is.

Note: on the comment going to the motor, the value is otherwise zero.
Attached Thumbnails
Click image for larger version

Name:	limitSwitchOverride.png
Views:	51
Size:	31.6 KB
ID:	18318  
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2015, 18:42
Minerbotics4827 Minerbotics4827 is offline
Registered User
FRC #4827
 
Join Date: Feb 2015
Location: Michigan
Posts: 6
Minerbotics4827 is an unknown quantity at this point
Re: Basic Limit Switch

Thanks for replying everyone. We have it setup how we want now. We ended up going with two limit switches set as upper and lower limits with the in range and coerce function on labview.
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 10:19.

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