![]() |
Re: Encoder Problems after update???
Quote:
Open a DIO input for each of the A and B channels and run each device reference through a DigSrc to the appropriate input of the Encoder Open. (Tracing through the library code, it looks like the DIOs are closed for you when you do an Encoder Close, so I don't think you will need to close them explicitly.) |
Re: Encoder Problems after update???
2 Attachment(s)
I am still having problems and can't read the encoders. I have the begin code and telop attached. I don't see what I am doing wrong.
Any advice will be helpful Attachment 8807 Attachment 8808 |
Re: Encoder Problems after update???
Nothing else with a conflict for DIO 1-4?
For instance, an old default compressor lying around? |
Re: Encoder Problems after update???
There is no other DIO using 1-4.
Is my sequence correct in begin? I have all of the updates installed. Do you guys have them installed and working? The updates i put in are up to 2.1 and 1.1 in the DS. Could I be missing anything? Could anyone display their code with begin and telop and auto that is relevant to encoders? |
Re: Encoder Problems after update???
Tomorrow I can pull and retest a working example and post the full project as a test if you need it.
The LabVIEW example is also a working test case for you. You can run that to see if it has better luck with your first encoder. P.S. What model encoder are you using? Did you double-check the pinout? |
Re: Encoder Problems after update???
I ran the Encode Example as-is, and changed the IP of course, but nothing else.
Hooked up a VEX quad encoder to DIO 1 & 2. It works fine counting up and down on the front panel display. cRIO V20, LabVIEW Update 2.1 No Driver Station app. needs to be running for this particular test. ------------------- If the above doesn't work for you, then I'd try a different encoder you can use just as an unmounted test case, and look closely at the wiring. Did your electrical team use a scope when they tested the encoders before? Did they test at the encoder end or at the DIO end of the connecting cable? Or throw your zipped project up here so we can see what might be hidden and interfering. |
Re: Encoder Problems after update???
Quote:
One more thing to check -- look at the DIO status on the Dashboard and see if DIO 1-4 change as you turn the encoders. That will help determine whether they are wired properly. (The Dashboard DIO lights only update twice a second by default, so don't expect them to react quickly.) |
Re: Encoder Problems after update???
Quote:
|
Re: Encoder Problems after update???
Just to close this thread. . .
As you know we are all busy finishing build and preparing for competitions. We did an audit of the Crio. First we moved all data streams to SLOT 6 and everything worked. Went back and looked at SLOT 4. Turns out that there was a bent pin in the 9pin D connector on the cRIO backplane. After straightening it, no problems. Thanks for your time and all of your suggestions. IT AIN'T ALWAYS THE SOFTWARE. . . |
| All times are GMT -5. The time now is 22:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi