We’ve installed all the new FRC software for 2012. I’m testing code and the cRIO is really slow to respond. The graphs tab shows that CPU usage jumps to 100% when I deploy and run code but I can’t figure out why. I’ve looked over everything and there isn’t a loop or anything weighing down the system.
This exact code used to run just fine before we installed the 2012 updates.
Has anyone else seen this? I’m really stuck…
Thanks.
when you say that you have railed a CPU, do you mean the cRIO or the pc?
Check the Messages box on the Diagnostics Tab to see if there are any errors being generated. Unhandled errors massively bog down the cRIO.
Hi,
I mean the cRIO.
There are errors in the messages screen of the diagnostics tab but they don’t make sense to me. There’s error messages about the camera code, but we’re not using the camera (we never have).
Also there’s an error message about the loop that contains RobotDrive running too slow, but I can’t find it. I don’t know where this error would be coming from because used this exact code last week with no issues (same with the camera). Only since we installed new SW have we had these problems.
Thanks for your help.
make sure that the “vision” boolean is set to false on robot main. (make that the default) In previous years, this sometimes caused problems.
I changed the vision boolean to false as you suggested and that helped a little but there is still a bit of lag.
All the errors I see are related to the camera. The error is:
-44003 occurred at WPI_CameraIssue HTTP Request with Authentication.vi>>WPI_CameraIssue Get.vi>>WPI_CameraSet Image Appearance Property.vi>>WPI_CameraSet Enum Appearance Property.vi>>WPI_CameraSet Image Size.vi>>Begin.vi>>Robot Main.vi
I thought this was because we didn’t setup the camera with the username and password that is recommended, but we went back and did that and it didn’t help…