![]() |
Re: Accelerometer Showing All Zeros
Quote:
|
Which physical slot of the cRio is the DIO module in.
By looking at your code it is in either slot 6 of 8 slot cRIO, or slot 4 of 4 slot cRIO. |
Re: Accelerometer Showing All Zeros
Our team is having the same problem. We have the Accelerometer wired up correctly to the I2C slot, and the Digital Module is in cRIO slot 2. The ode should be working but we still get all 0's. I'll post our code below, maybe that may be the issue.
Code:
/*----------------------------------------------------------------------------*/ |
Re: Accelerometer Showing All Zeros
Sorry I didn't respond before, I forgot to check this thread. We're still having problems. The cable we got in the kit was broken, and we tried to fix it but ended up breaking it more. We have a different ribbon cable that was bought last year, but that doesn't seem to fix the issue.
|
Re: Accelerometer Showing All Zeros
Actually, sorry, we got it to work. I replaced the round cable with a ribbon cable and moved the pwm's to the outside set of I2C ports. I think moving it to the outside is what actually fixed it, but I did both. Thanks everyone for your help!
|
Re: Accelerometer Showing All Zeros
Quote:
|
Re: Accelerometer Showing All Zeros
This seems to be a common symptom, and there are probably many different underlying problems. In the case of 3504, the round cable (from prior years' KoP) was the issue. It seems to have signal integrity problems for any digital signals that change very quickly or that may not work properly in the face of noise.
It probably isn't a bad idea to keep the distance this cable has to span reasonably short and follow the suggestion in the instructions on how to rework the ribbon cable and shorten it if you're doing the rework anyway. |
| All times are GMT -5. The time now is 12:19. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi