![]() |
Re: LabVIEW Encoder not reliably returning Rate
NI really doesn't believe that this isn't important enough to fix?
|
Re: LabVIEW Encoder not reliably returning Rate
A look inside any industrial control encoder interface shows that typically there is quite a lot of digital filtering done on the A,B,I signals before introduction to the count tracking logic. Take a look at the old HP HCTL-20xx data sheet as an example. They employed multiple stages of demetastabilizing flip-flops, these are necessary because any input signal is asynchronous to the processor clock, meaning that sooner or later you will get a clock edge which is coincident with a signal edge, causing flip-flops to make wrong decisions. After the inputs are synchronized, then more flip-flops are needed to verify that the A,B signals are not in illegal states, because real encoders do not produce signals which are in strict quadrature. After the signals are verified good, then the up/down logic may increment or decrement the encoder tracking count. I suspect there is none of this within the NI device and we can't do much to fix it. On the electrical side, we can filter the power connections to the encoder, shield the wires, shorten the wires, and provide the correct pullup load (US Digital calls for 2.7K ohm pullups) that's about it.
|
Re: LabVIEW Encoder not reliably returning Rate
Quote:
This bug was deferred, meaning it will be fixed after the season is over, and when side-effects from the fix can be discovered somewhere other than your robot on Thursday before an event. Greg McKaskle |
Re: LabVIEW Encoder not reliably returning Rate
Quote:
Can an official help document, or something to that effect, be provided to teams? I've read through this thread and I think most of us are still at a loss on the best way to workaround this issue. Best Regards |
Re: LabVIEW Encoder not reliably returning Rate
I agree. Some type of how to should be provided to teams for this "workaround". I have opened up the encoder VIs and I don't even know where to start changing things. It doesn't at all look like how we use to do it in C with the IFI controller.
For our noise issue, we are at 1x and still have 50% being noise. Not sure what to do about this now. Is it possible that there's dirt or something in the encoder when we put it together that could cause this? What kind of noise is everyone else getting? I would post a screen capture but our robot is being worked on and not operational at the moment. |
Re: LabVIEW Encoder not reliably returning Rate
The workaround is to recreate the "rate" from the "distance".
You subtract the previous distance from the latest distance, and divide by the seconds in between the two measurements. Or use CAN. |
Re: LabVIEW Encoder not reliably returning Rate
Quote:
|
Re: LabVIEW Encoder not reliably returning Rate
Quote:
|
Re: LabVIEW Encoder not reliably returning Rate
Quote:
It appears that rate is calculated from differentiating distance, not the other way around. |
Re: LabVIEW Encoder not reliably returning Rate
Quote:
|
Re: LabVIEW Encoder not reliably returning Rate
Quote:
If it really is digital switching noise on the wires, there are digital filters available to you in the hardware, but they are not enabled by default (since we have no idea what the frequency of your input signal should be). You can configure them with VIs in the Advanced Digital Input palette. -Joe |
Re: LabVIEW Encoder not reliably returning Rate
Quote:
|
Re: LabVIEW Encoder not reliably returning Rate
Quote:
Quote:
-Joe |
Re: LabVIEW Encoder not reliably returning Rate
It worked two years ago.
It worked last year. It does not work this year. What changed? Why did you decide to re-write code that worked well? How did none of the beta test teams find this? We consider encoders and potentiometers to be extremely valuable sensors. The inability to trust the WPIlib to handle encoders correctly is extremely annoying, as is the black-box nature of the FPGA image which prevents us from fixing the root cause. Could you revert to last years encoder code? It is known to work, and I know of no differences between this years and last years (or the year before that). |
Re: LabVIEW Encoder not reliably returning Rate
Quote:
|
| All times are GMT -5. The time now is 16:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi