NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
JackDunaway

Allow a quick "Timing Probe" for Timing Metrics

Status: New
by Trusted Enthusiast on ‎06-15-2009 07:00 PM

Typical question in development process: "How quickly does my code execute? What runs faster... Code A or Code B?" So, if you're like me, you throw in a quick sequence that looks like this:

 

TimingDuringDevelopment.png

 

AHHH! What a mess! It's so hard to fit it in, with FP real estate so packed these days!

 

We need this:

ProposedTimingDuringDevelopment.png

 Just like my other idea, and for simplicity's sake NI, I would be PERFECTLY happy even if you had to set up the probes during edit mode, and were not able to "probe" while running.

 

 As a bonus, this idea may be extrapolated into n timing probes, where you can find delta t between any two of the probes.

Comments
by Trusted Enthusiast on ‎06-15-2009 10:02 PM

I've thought about this idea for a while (and we've even discussed it within LabVIEW R&D).  This is one of the things I plan implementing as a plugin for the JKI Right-Click Framework (unless they already have it).

 

-D

by Trusted Enthusiast on ‎06-16-2009 03:32 AM
Ooh, I like it.
by Proven Zealot ‎06-16-2009 05:54 AM - edited ‎06-16-2009 05:56 AM

Hi,

it's already possible with a custom probe. It's a bit circumstantial because you have to know the name of the second probe and insert it into a field in the first probe, but it's already possible. Maybe the name part can be changed (i work on it), but then it should do what you need.

 

Mike

Message Edited by MikeS81 on 06-16-2009 12:56 PM
by Member InternationAL ‎06-16-2009 06:41 AM - edited ‎06-16-2009 06:42 AM
This is one of the most boring things to have to do and most frequently necessary things to have to carry out.  This is one of the best ideas I've seen on here.  Why isn't it this easy to perform this boring routine task?  Please, NI, implement this ASAP.
Message Edited by InternationAL on 06-16-2009 06:42 AM
by Proven Zealot ‎06-16-2009 09:20 AM - edited ‎06-16-2009 09:21 AM

Just for info. The attached image shows such a custom probe. It needs a lot of time, but it's already possible.

The second probe has to be added directly after the first one. 

 

Probe.PNG

 

Mike

Message Edited by MikeS81 on 06-16-2009 04:21 PM
by Knight of NI on ‎06-16-2009 11:52 AM
I see problems due to the parallel nature of LabVIEW. Measuring timings like this can be way off, because other code can easily run in parallel and steal cpu cycles from the node under test.
by Active Participant waldemar.hersacher on ‎06-22-2009 06:40 AM

I would like this as a build in function. Right click on any node and activate "Timing Measurement". The timing should be sent to a "Timing display window" (which must not be open during runtime nesseccarily). This would give the chance to use a timing below 1 ms.

Even a simple multiply would be of interest when  multiplying an array of CDB with 100,000 elements with another CDB.

by Active Participant Henrik_Volkers ‎06-27-2009 08:55 AM - edited ‎06-27-2009 09:03 AM

I would also like to have this little stop watch to spread over the diagram just like a breakpoint.

However I would love to see it at  Tools/Profile/Diagram metrics with some more statistics involved.

A complete matrix might be overkill but nice to select the relations of interest and have last,min,max,mean,sdev and while we are at it: a histogram and export? :-)

And last but not least: the ability to store it (in the vi?) and be able to general enable,disable it. 

 

 

 

Message Edited by Henrik Volkers on 06-27-2009 04:03 PM
by Active Participant David_L on ‎08-31-2009 04:09 PM

You could use something like this:

http://decibel.ni.com/content/docs/DOC-6523

 

It is only 1 ms accuracy but in Windows, you can't really expect much better than that anyways.  Also it requires that one uses error clusters for sequential programming, but this is usually done in most code anyways.  

by Member RandyP on ‎12-15-2009 10:09 AM

I've taken a similar approach, (also windows-only) but used the performance counter from kernel32.dll.

 

http://decibel.ni.com/content/docs/DOC-8561

 

This gives at least 0.1 ms accuracy, I think! (darn overhead)
Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
126
86
76
66
64
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page