View Single Post
  #6   Spotlight this post!  
Unread 23-02-2009, 08:28
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,753
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
Re: Create single file for empirical values in labview

Milliseconds divided by one million gives nanoseconds. And yes, I was simply showing a common and accurate way of profiling stuff, though I didn't really show it.

The first picture shows a way to time this, and the second shows a way to get zero when doing something a million times.

Variables aren't efficient, but inefficient has different meanings depending on what you are doing. Since this will allow you to change code and retune on the fly without even recompiling, I think it is a good tradeoff. If it seems like it is getting too expensive, you pull the global outside of a fast loop and read it once and put it into a shift register.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Picture 9.png
Views:	53
Size:	15.6 KB
ID:	7549  Click image for larger version

Name:	Picture 10.png
Views:	47
Size:	16.5 KB
ID:	7550