FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing Tool

Timing Tool

I've attached a VI that may give some insight into the timing of LV-based applications. Perhaps something like this will find its way into the default framework next year.


Drop the subVI into the teleop and into vision or periodic loops. You may want to wire a Call Name into the subVI, but if you do not, it will use the calling VI's name.

While running the robot code in development mode, you can open the subVI panel and look at the display of names and deltas. Hopefully it will give some insight into how often various portions of your code are being run. If the CPU is overtaxed, look for things you can increase the loop timing on. If the value for teleop is much larger than 20, it indicates an issue with the amount of time teleop is taking to run.

This will not solve any issues on its own, but it should be lightweight enough to leave in your code and will help you keep tabs on timings as code changes are made.

Greg McKaskle
0 Kudos
Message 1 of 2
(4,460 Views)

Greg, your timing is perfect!  My students introduced a lag in teleop with their latest round of changes.  Your VI will definitely help them find the problematic change and will save me a lot of time in trying to create a profiling VIto help them....

Thanks!

Geoff Schmit

Team 3061

Naperville North High School

--
Geoff Schmit
Huskie Robotics, FIRST Team 3061 Lead Mentor
http://team3061.org/
@team3061
0 Kudos
Message 2 of 2
(2,735 Views)