Chris Davis Posted September 13, 2007 Report Share Posted September 13, 2007 I was contemplating adding a processor usage display to one of my CPU hungry programs. At NI week 2007, one of the demo's, specifically one on Tuesday demonstrating the new multi-core parts of the timed loop had such a display. Does anyone know how they did it, or how I might add such a display to my program? Thanks Quote Link to comment
Rolf Kalbermatter Posted September 13, 2007 Report Share Posted September 13, 2007 QUOTE(chrisdavis @ Sep 11 2007, 08:45 PM) I was contemplating adding a processor usage display to one of my CPU hungry programs. At NI week 2007, one of the demo's, specifically one on Tuesday demonstrating the new multi-core parts of the timed loop had such a display. Does anyone know how they did it, or how I might add such a display to my program? My best bet is .Net although I think the WinAPI will also give you this information on a somewhat lower level and probably not exactly trivial to access. Possibly LabVIEW has some private hooks itself. Would make sense to have this info in LabVIEW somehow to make it platform independant. Rolf Kalbermatter Quote Link to comment
Donald Posted September 13, 2007 Report Share Posted September 13, 2007 QUOTE(rolfk @ Sep 12 2007, 08:12 AM) My best bet is .Net although I think the WinAPI will also give you this information on a somewhat lower level and probably not exactly trivial to access. Possibly LabVIEW has some private hooks itself. Would make sense to have this info in LabVIEW somehow to make it platform independant.Rolf Kalbermatter There is a LabVIEW example "SimpleTaskMonitor" that uses the .NET interface to get information from the performance counters in the system assembly. Quote Link to comment
Neville D Posted September 13, 2007 Report Share Posted September 13, 2007 Download the demo code from the NI-WEEK Whats new in LV RT presentation. That should have the properties or whatever that exposes processor usage. Unfortunately, I have not yet upgraded to 8.5 (waiting for my LV-RT 8.5 disk on SSP) so I can't open it and give you a screen shot. Neville. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.