Quote:
Originally Posted by Bradley Boxer
Thanks guys for your help.
I split Teleop into a few more subVIs and used the clean-up-diagram button, so it should be more readable now. I also took out most of the debug indicators and controls, and necessary Talon SRX get status', since we don't need them anymore. We were running the code from a build-deploy, and we got "Not running fast enough" errors a few times every second as of yesterday.
I will test again today and post logs when I get to our workshop.
If you want to look at the new code:
https://drive.google.com/file/d/0B9k...ew?usp=sharing
I added the navx libraries this time.
|
I'm still not seeing anything that would ultimately cause the "Not running fast enough" errors. As The_Waffling said, you could replace that huge Refnum cluster to all the Joystick, Motor, Robot Drive, Solenoid, and Encoder Refnum_Get functions. If you're debugging, those controls will still get updated and that is quite a few front panel controls to update every 50ms. Keep in mind all of this is going over the network.
You should definitely check your CPU usage like Greg said. If you're running at 100%, that will likely cause you issues. You can easily check that using the Driver Station or you can Profile your program within LabVIEW while it's running on the target.