02-14-2011 06:19 PM
Hi,
I need help with a very odd problem: when teleop is enabled, there is intermittent, random motor movement of the (mecanum) wheels without any kind of input. In the driver station diagnostic log, there is an error code 44061. This implies that our code may be taking too long to execute, but,i nterestingly, an early build that was deployed on the robot works fine, but when I try to run the same revision as the build (not building and deploying), it won't work.
I have tried:
I attached the teleop VI revision that is the same as the build version that works. Any ideas on what could be wrong?
02-15-2011 05:32 PM
Howdy stjanovitz!
It sounds like the intermittent motor movement you are experiencing could be caused by your Teleop VI taking too long to execute and the MotorDrive VIs timing out. This tutorial describes the Safety Config features that were added to LabVIEW FRC 2011 and how you can modify the timeout values.
Regards,
Barron
02-16-2011 02:25 PM
Thanks for the reply Barron!
Increasing the timeout seemed to fix it, but do you know any common things in LV that would greatly increase the VI's execution time?
02-16-2011 02:52 PM
The Get Robot Competition Mode.vi has a wait for new message from the driver station (time out is 1000ms).
If the laptop used for the driver station has too much going on, it could be slow in sending new packets to the cRIO causing your teleop code to run slow.
02-17-2011 02:43 PM
Hey Steve,
You could use the VI profiling tools in LabVIEW to see which VIs are taking the most time. You can access it by going to Tools>>Profile>>Performance and Memory.
Regards,
Barron