Go to Post A Guru teaching batteries at Exide: "Do not draw your power from up here, by your terminals. You must reach down deep into your plates and pull the energy from your entire being! You must prove yourself worthy to be FIRST power cells!" - KenWittlief [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 21-02-2011, 18:55
Migriemsl Migriemsl is offline
Registered User
AKA: Marcene Grimsley
FRC #3743 (Eaglebots)
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Texas
Posts: 15
Migriemsl is an unknown quantity at this point
Code not responding to Limit Switch Signal

We are having problems with our limit switches. We are trying to use our switches to prevent our manipulator from going past a certain point, but when the switch is hit the manipulator doesn't stop. The manipulator is working and the switch is sending a signal though. We think our code could be the problem, but the switcch itself is working just it isn't triggering the operation we want.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2011, 23:27
Shawnk Shawnk is offline
Registered User
FRC #1802
 
Join Date: Jan 2011
Location: Kansas City
Posts: 2
Shawnk is an unknown quantity at this point
Re: Code not responding to Limit Switch Signal

We had the exact same issue issue. The way we solved it was just a meticulous look at the code and wiring. Make sure your code is using the correct refnum names for each switch (same between begin and teleop vi's). Take a look at the wiring to see if the switches are 'Normaly Open' or 'Normally Closed' and make sure the code is reacting accordingly. And lastly triple check the channels set in the code vs what is actually wired in the sidecar.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2011, 00:29
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,112
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: Code not responding to Limit Switch Signal

If you think your code could be the problem, you'll probably need to show it to us before you can get any useful advice.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2011, 19:00
Migriemsl Migriemsl is offline
Registered User
AKA: Marcene Grimsley
FRC #3743 (Eaglebots)
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Texas
Posts: 15
Migriemsl is an unknown quantity at this point
Re: Code not responding to Limit Switch Signal

I can not get our code image to pull up but I was able to include a link to our blog with the code on it. THANK YOU for any help you are able to provide!




http://saladorobotics.tumblr.com/
Attached Files
File Type: doc doodlethingy.doc (4 Bytes, 14 views)

Last edited by Migriemsl : 22-02-2011 at 19:27. Reason: photo wasn't working
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2011, 22:51
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Code not responding to Limit Switch Signal

Is this in Teleop? More information would be fantastic. Until then, all we can really say is "Check your references, probe the Digital Get's to make sure they trip when you want, check that you aren't over-riding the value somewhere, etc." You can post .vi's, you can post your whole project if you zip it.
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 22-02-2011, 23:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: Code not responding to Limit Switch Signal

Is the limit switch wired as Normally Open or the opposite?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2011, 00:36
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Code not responding to Limit Switch Signal

Does the operation work if the arm is moving very slowly? Remember that the limit switch is only being tested once for each execution of the loop. If the limit switch is only set for a small period, it is possible for the switch to be set and then rotate past to the point that it is not set between executions of the loop. When you are using a limit switch, you will find that the ending position will not be exactly the same each time that the limit is reached. The speed of the arm and repetition rate of the loop cause some uncertainty.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2011, 00:47
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Code not responding to Limit Switch Signal

Quote:
Originally Posted by rwood359 View Post
Does the operation work if the arm is moving very slowly? Remember that the limit switch is only being tested once for each execution of the loop. If the limit switch is only set for a small period, it is possible for the switch to be set and then rotate past to the point that it is not set between executions of the loop. When you are using a limit switch, you will find that the ending position will not be exactly the same each time that the limit is reached. The speed of the arm and repetition rate of the loop cause some uncertainty.
Excellent point. I set up our code so that there is a dedicated, 10ms loop that just checks the limit switch and stops the motor.

However, that's probably not the real problem.

What did you check to make sure the limit switch worked? If it was somewhere within teleop (with a probe or an indicator or something), then it's probably just how you stopped the motor. If it was that your heard a clicky sound or used a multimeter, it could be anything.

EDIT: I just looked at the program, and it seems as if you will stop the actuator if either switch is pressed. If you have one at the top of the reach and one at the bottom, this is not what you want. I'll attach what we did for limit switches.
Attached Files
File Type: vi Limit motor.vi (6.5 KB, 16 views)

Last edited by WizenedEE : 23-02-2011 at 00:51.
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 09:23.

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