![]() |
Robot not Listening to Code (LabView)
Ok, so, yesterday, everything was working. Even Autonomous, more or less. This morning, we came back in to work, and the robot was simply unresponsive. Eventually, we succeeded in connecting, but the code seemed to be completely ignored. All throughout the day, we tried everything we could think of, including switching out the C-RIO. Symptoms include: flashing Talon lights, brief spurts of activity in the drive train before a return to silence (without any input from us), and random motion in other motors. Probing all of the lines in the code proved that there were no errors. Replacement of the C-RIO, most of the PWMs, and old code that we know works had little to no effect. We've never seen anything like this before. Any help, soon, would be greatly appreciated.
|
Re: Robot not Listening to Code (LabView)
Ensure the cable going from the crio to the digital sidecar is fully plugged in. Are you seeing all of the lights on the digital sidecar turn on?
Also just to confirm, you can connect to your robot from the driver station right now? |
Re: Robot not Listening to Code (LabView)
The answer to all of you questions is yes. We have replaced ALL of the vital electronics. The driver station and everything works completely OK. There is no hints as to what the problem would be, tethered or wireless, computer or classmate, anything we try produces the same result.
|
Re: Robot not Listening to Code (LabView)
Have you tried replacing your battery? It sounds like you've got an unusably low voltage, and you haven't said anything about your battery.
Alternatively, try making sure each cRIO module is in its proper place -- this will mess everything up. |
Re: Robot not Listening to Code (LabView)
There is still a lot that you haven't said.
Were you running from a deployed and built app, or were you running from the run button? If you are running from code, you should be able to set breakpoints, probe, and determine if the code that is running is involved in the symptoms or if it is largely electrical issues. You can also place the DS into test mode where your periodic code is still running, but neither auto or tele is called. You can click through the dashboard table and view if sensors are working and even drive the motors. You also have lots of info on the charts tab. It tells you the robot battery voltage, the CPU usage. It tells you the errors coming front the code and it tells you when your robot is processing an auto or tele packet. You may want to post some of these elements to aid in debugging things. Greg McKskle |
Re: Robot not Listening to Code (LabView)
Quote:
This sounds like the lag our team gets sometimes. Check your DS Charts tab and look at the CPU usage of your cRio and the packets being lost. A lot of times, we get "brief spurts" whenever our CPU is pegged at 100%, which can be caused by anything from vision code to error messages. |
Re: Robot not Listening to Code (LabView)
We aren't sure of the actual problem, but we did try a different computer and the code worked. We plan to re-install LabView on our original computer to see if things improve there for the next season. Thank you all for your input.
-the other 931 programmer |
Re: Robot not Listening to Code (LabView)
We've had this happen to us before. our biggest two culprits were either low battery, or the cRIO CPU is slamming 100% use. both were pretty easy to deal with. see if the cRIO is being overloaded
|
| All times are GMT -5. The time now is 09:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi