LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Determining CPU usage, whether a laptop is plugged in, etc.

Solved!
Go to solution

   I was wondering if anyone had some example code for reading things into LabVIEW from the OS regarding computer status.  I would like to be able to read things like CPU usage, memory usage, whether a laptop is plugged in or not, battery level remaining, CPU core temp, etc.  I'm sure all these are available through dll's, but I was wondering if anyone had already developed the LabVIEW calls.

 

Thanks,
    DaveT

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
0 Kudos
Message 1 of 3
(2,536 Views)
Solution
Accepted by topic author Dave_Thomson

Sure, attached is a couple VIs that do some of the things you want.  There is the get CPU utilization of a process from here.

 

http://forums.ni.com/t5/LabVIEW/Checking-to-see-if-a-process-is-running/td-p/2834398

 

Get System Information which I think comes from the WinAP here.

 

http://www.ni.com/example/29935/en/

 

And the get battery status which I think was designed for UPSs which comes from the forums but I can't seem to find the origin.

 

EDIT: This might be better for the UPS which uses .NET

 

https://decibel.ni.com/content/docs/DOC-1154

Message 2 of 3
(2,501 Views)

Thanks, Hoovah!  Excellent references.  I also found a thread where Altenbach mentioned a .NET example in the Example Finder that does some of  this.


DaveT

 

-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.
0 Kudos
Message 3 of 3
(2,467 Views)