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.