05-28-2015 08:51 AM - edited 05-28-2015 08:59 AM
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
Solved! Go to Solution.
05-28-2015 11:21 AM - edited 05-28-2015 11:22 AM
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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-28-2015 11:10 PM
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