LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to monitor CPU usage during the execution of a vi?

I am wondering if there is a way, using LabView, to monitor the CPU usage during the execution of a vi. I want to be able to programmatically adjust the program controls based on the CPU usage. This program is designed to run all day in the background.

Thanks!
0 Kudos
Message 1 of 7
(4,346 Views)
LabVIEW 7 offers a very elegant way to do this using .NET technology.

See the following document by Murali Parthasarathy:
http://zone.ni.com/devzone/insights.nsf/webmain/307935CAE96229EC86256D3600716325?opendocument
Message 2 of 7
(4,346 Views)
Tutorial 2 at http://www.mech.uwa.edu.au/jpt/tutorial/ieindex.html
might be of some help
Message 3 of 7
(4,346 Views)
JAI wrote:
> I am wondering if there is a way, using LabView, to monitor the CPU
> usage during the execution of a vi. I want to be able to
> programmatically adjust the program controls based on the CPU usage.
> This program is designed to run all day in the background.
>
> Thanks!

There are at least two Windows tools you can use to see CPU usage
(depending on what version of Windows you have). The Task Manager
(ctrl-alt-del) has a panel that shows CPU usage. There is another
program that has more options as to what to watch. Under W2K, it is in
the Administrative Tools in the Control Panel and is called Performance.
Play around with adding various new "Counters".
Another option is to measure CPU usage programmatically. George Zou

has a tool that makes the appropriate dll call. Check out
http://www.geocities.com/gzou999/index.html

Regards,
Dave Thomson
-------------------------------------------------------------
David Thomson 303-499-1973 (voice and fax)
Original Code Consulting dthomson@originalcode.com
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Developer
Certified Instrument Driver Developer
-------------------------------------------------------------
Research Scientist 303-497-3470 (voice)
NOAA Aeronomy Laboratory 303-497-5373 (fax)
Boulder, Colorado dthomson@al.noaa.gov
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary,
and those who don't.
Message 4 of 7
(4,346 Views)

altenbach wrote:
LabVIEW 7 offers a very elegant way to do this using .NET technology.

See the following document by Murali Parthasarathy:
http://zone.ni.com/devzone/insights.nsf/webmain/307935CAE96229EC86256D3600716325?opendocument

________________________________________________________________________________________

 

Link no longer works.  😞

Message Edited by RVallieu on 10-10-2008 09:32 AM
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 5 of 7
(3,709 Views)

RVallieu wrote:

Link no longer works.  😞


 

 

Try this link instead. 🙂

Message 6 of 7
(3,697 Views)

Thanks.

 

I also found the other post on here about the NI Example SimpleTaskMonitor.vi.  I had to search for .NET in keywords or CPU Usage in description to find it.

 

 

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 7
(3,676 Views)