Go to Post The championship event is a meta-game of inches. People will complain about unbalanced/unequal divisions, whether you think it's silly or not. - PayneTrain [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-11-2011, 00:14
4AngryNutjobs's Avatar
4AngryNutjobs 4AngryNutjobs is offline
Registered User
FRC #3859
 
Join Date: Oct 2011
Location: Elk Grove, CA
Posts: 16
4AngryNutjobs is an unknown quantity at this point
Post a ridiculous reset button

Hey guys,
We have a limit switch that is supposed to turn off a motor when pressed. That is, the motor is to run until the our lift descends and hits the switch, stopping the motor. Only problem is that the switch value is always reading true, stopping our motor even before it begins to move. This happens even when the switch is unplugged. Any suggestions as to why our program does this?
Thanks,
Your 4angrynutjobs
Reply With Quote
  #2   Spotlight this post!  
Unread 08-11-2011, 07:30
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: a ridiculous reset button

  • Switch plugged into the wrong Digital Input - test by jumping the signal to ground (bypassing power) & watching in code
  • Switch broken - test with a multi-meter
  • Switch wire broken - test at the far end from the switch with multi-meter
  • Wrong wires/connections used - visually inspect, two outside Digital Input pins ONLY (Sig & -), no center pin (NOT pwr)
  • Code using duplicate Digital Input - test with a different Digital Input
  • Digital Sidecar not powered correctly - check for three brightly glowing power indicators
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 08-11-2011 at 07:36.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-11-2011, 07:52
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: a ridiculous reset button

Most likely you have wired the switch such that it is always open. The pullup resistors in the interface will pull up to make that input high all the time. You can try just modifying the code knowing that the input will be high until pressed.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-11-2011, 07:50
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: a ridiculous reset button

Quote:
Originally Posted by 4AngryNutjobs View Post
Only problem is that the switch value is always reading true, stopping our motor even before it begins to move. This happens even when the switch is unplugged. Any suggestions as to why our program does this?
If you describe what kind of switch it is and how you have it wired, we can help you better.

A typical limit switch for this application should be wired between the (-) and (signal) pins of a Digital Input. The input will indeed always read true with nothing connected, or with the switch open. It will only read false when the switch is closed.
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 20:42.

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