|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||||
|
|||||
|
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.
|
|
#3
|
||||||
|
||||||
|
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
|
|
#4
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |