Go to Post In FIRST, there's no such thing as too many 1/4-20 bolts, too many bottles of caffeinated beverage, and too much knowledge from others. - Billfred [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 12-03-2009, 13:04
ayeckley's Avatar
ayeckley ayeckley is offline
Registered User
AKA: Alex Yeckley
FRC #2252 (Mavericks)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
ayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond repute
Encoder direction loss?

Has anybody seen the same problem that we are currently experiencing? We think we've applied all of the various LabView updates properly (we've passed multiple inspections, at least). What we're seeing is that we get good measurements from our encoders, but all four of them report "forward" rotation even when rotated backward. This doesn't seem like the bug that has already been discussed. Any ideas?
__________________

Reply With Quote
  #2   Spotlight this post!  
Unread 12-03-2009, 13:54
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Encoder direction loss?

Quote:
Originally Posted by ayeckley View Post
What we're seeing is that we get good measurements from our encoders, but all four of them report "forward" rotation even when rotated backward. This doesn't seem like the bug that has already been discussed. Any ideas?
Can I ask what type of encoder you are using? Is it a quadrature encoder or a simple single phase encoder? Both will give accurate distance, but only a quadrature can give distance and direction (Well, unless you play a little magic with your code on the single phase.)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #3   Spotlight this post!  
Unread 12-03-2009, 14:10
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,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: Encoder direction loss?

What Mr. Bill said.
A Quad encoder will have two DIO connections. The second is used to tell direction.
An encoder that has only a single DIO connection (including a quad encoder with one phase disconnected) can only count up.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-03-2009 at 14:13.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-03-2009, 14:25
ayeckley's Avatar
ayeckley ayeckley is offline
Registered User
AKA: Alex Yeckley
FRC #2252 (Mavericks)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
ayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond repute
Re: Encoder direction loss?

These are all true quadrature encoders (having two output phases). So far in our troubleshooting it looks like the sub.vi is giving properly signed outputs, but that we've made a mistake somewhere between the sub.vi and the indicator in our main .vi. The good news is that it looks like we didn't physically damage the encoders as I'd initially feared.
__________________

Reply With Quote
  #5   Spotlight this post!  
Unread 12-03-2009, 16:01
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Encoder direction loss?

Quote:
Originally Posted by ayeckley View Post
These are all true quadrature encoders (having two output phases). So far in our troubleshooting it looks like the sub.vi is giving properly signed outputs, but that we've made a mistake somewhere between the sub.vi and the indicator in our main .vi. The good news is that it looks like we didn't physically damage the encoders as I'd initially feared.
I guess the only question I have left is: "Does the distance display accurately when moving both forward and backward?"
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #6   Spotlight this post!  
Unread 12-03-2009, 16:09
ayeckley's Avatar
ayeckley ayeckley is offline
Registered User
AKA: Alex Yeckley
FRC #2252 (Mavericks)
Team Role: Mentor
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
ayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond reputeayeckley has a reputation beyond repute
Re: Encoder direction loss?

Problem solved:

Apparently our programmers had initialy written their traction control software to address a bug in the initial encoder routine. Then, in one of the updates the bug was addressed by NI (or whomever). We left our fix in place not realizing the original bug had been addressed. The net result was that we took the absolute value of the direction vector (multiplying -1 by -1). We've removed our fix leaving only the NI fix, and now things are working properly.

Thanks for following along with our little drama
__________________

Reply With Quote
  #7   Spotlight this post!  
Unread 12-03-2009, 16:17
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Encoder direction loss?

Quote:
Originally Posted by ayeckley View Post
Problem solved:

Apparently our programmers had initialy written their traction control software to address a bug in the initial encoder routine. Then, in one of the updates the bug was addressed by NI (or whomever). We left our fix in place not realizing the original bug had been addressed. The net result was that we took the absolute value of the direction vector (multiplying -1 by -1). We've removed our fix leaving only the NI fix, and now things are working properly.

Thanks for following along with our little drama
OK, now that sounds better.

When I originally started my first post, I was going to tell the tale of my first experience with the "Early shipment" controller. I too had an issue with direction and distance for the encoder example, but couldn't remember exactly what I did to resolve it. So, I looked at the most recent encoder example and found that it looked normal. Therefore, I just asked a couple questions. I was even going to ask you what version of the FRC Labview you had originally created your code in.

Bottom line, you figured it out on your own. BRAVO!!!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
Compass/direction sensor Frank(Aflak) Technical Discussion 10 06-04-2003 09:18
Need direction...... archiver 2001 2 24-06-2002 02:17
Need direction...... archiver 2001 0 24-06-2002 02:17
Motor Spin Direction archiver 2000 6 23-06-2002 23:43


All times are GMT -5. The time now is 10:43.

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