Go to Post Remind me to wear my kevlar vest to any event you're at. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 20:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Attached Files
File Type: vi Elapsed Times.vi (11.1 KB, 58 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2010, 22:42
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Timing Tool

Thanks Greg. I think this will be quite useful as both a teaching tool and a debugging tool.


~

Last edited by Ether : 21-02-2010 at 22:44.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2010, 02:16
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Timing Tool

Thanks Greg. I'm always grateful for a nice new tool.

(and thanks for that "s" at the end of your filename ... saving us from a rename)
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timing belts kajeevan General Forum 6 13-08-2008 13:59
timing of re-contact Gary Dillard Rules/Strategy 16 19-01-2008 14:09
autonomous timing seanl Programming 6 09-03-2007 09:42
Timing Codes Ryan Cumings Programming 11 29-01-2004 22:26
Tool for one, Tool for all Gadget470 Team Organization 6 01-10-2003 02:41


All times are GMT -5. The time now is 08:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi