Go to Post This isn't about practical, it's about having fun and thinking outside the box... tetrahedron.... whatever....:rolleyes: - Cyberguy34000 [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 17-03-2009, 08:56
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
problems with velocity readout from encoderget vi

Hi, We are programming (still) our traction control for our bot since I'm the only programmer for our team and I'm having trouble with reading sensible values from the velocity outpu of the encoder get vi. The distance is reading fine, however, the velocity keeps resetting to zero or stays at zero.

Does anyone know what my problem might be? I tried using the example code without modification and I have the same problem.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-03-2009, 09:03
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: problems with velocity readout from encoderget vi

Make sure that the " minimum rate" parameter is not set too high. We scaled our output to ftc/sec, so the default min rate was too big. If your measured rate drops below the min, the output is set to zero, and the "stopped" output goes true. Watch the "stopped" output.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 17-03-2009, 12:11
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: problems with velocity readout from encoderget vi

It sounds like you may have found the bug mentioned here: http://forums.usfirst.org/showpost.p...5&postcount=34
Reply With Quote
  #4   Spotlight this post!  
Unread 25-03-2009, 13:47
Brdn666's Avatar
Brdn666 Brdn666 is offline
Registered User
AKA: Brandon
FRC #2604 (Metal & Soul)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Capac, MI
Posts: 24
Brdn666 is an unknown quantity at this point
Send a message via Yahoo to Brdn666
Re: problems with velocity readout from encoderget vi

If you still can't get it, you can use the counter. The period output works for speed. One rev (Count of the counter) is one rev. of the encoder. Multiply that by the circumference of the wheel or whatever and you got the speed. You also get rev. here. You can multiply that by the circumference to get distance too.. that would save space. You must have a Digsrc if the encoder is analog!! You get some example code for it.
__________________
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
Problems undeploying a program from the cRIO ellisk Programming 2 29-12-2008 16:21
Gyro problems, crossposted from Electrical EFastring Programming 4 05-02-2008 10:16
Problems Using PID for Velocity Astronouth7303 Programming 6 10-02-2006 09:00
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51
Translating pressure sensor readout into actual pressure Mercutio Pneumatics 0 13-02-2004 16:29


All times are GMT -5. The time now is 07:52.

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