Go to Post If you use a flux capacitor make certain it is a COTS component, or that you fabricate it from COTS materials. - Richard Wallace [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 16-02-2009, 22:19
dmlawrence dmlawrence is offline
MIT '14
FRC #1751 (Warriors)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Long Island
Posts: 63
dmlawrence is an unknown quantity at this point
Encoders not working

I am using the quadrature encoders that were included in the kit. I am experiencing an odd problem where the signal suddenly drops out soon after we start driving. I have attached a graph of the signal (after a low-pass filter) that shows the dropout very clearly. Here are some possible causes that have occurred to me

(1) The signal, which is passed through two solder joints and then a DB-25 connector, is somehow degraded to an unusable point.

(2) The camera processing is interfering with the encoder counting. (CPU usage is in the 80-90% range.)

(3) Something else?

Which of these is most likely? Any help will be most appreciated.

David
Team 1751
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	47
Size:	140.6 KB
ID:	7488  
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2009, 22:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Encoders not working

You don't give any details on how you are using the encoder, but there is a FAQ for LV that explains that the 4x option with averaging set to 1 will return a rate of 0 once the encoder moves very fast. This is not an issue with 2x encoders or when averaging is set to 2 or any other valid number. Also, the distance or count is fine, it is only the rate that has issues.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2009, 23:01
dmlawrence dmlawrence is offline
MIT '14
FRC #1751 (Warriors)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Long Island
Posts: 63
dmlawrence is an unknown quantity at this point
Re: Encoders not working

Thanks for patrolling the forums during such a crucial time for teams! I had been using a separate averaging VI, not the encoder library's built-in averaging functionality (which was indeed set to 1 sample). Changing over to this averaging solved the problem. I'm glad this was such an easy problem to diagnose!

David
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
jaguar not working Bwood16 Motors 12 13-02-2009 13:22
cRio not working...? Jack Gillespie Programming 22 13-02-2009 13:07
p2 not working? Lone_Wolf92c Programming 5 22-02-2008 08:49
IR Board Not Working (But NOT Fried) itsme Electrical 2 18-02-2008 06:11
Encoders not changing... paulcd2000 Programming 28 18-02-2007 08:34


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

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