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
- last edited on
06-24-2025
02:34 PM
by
Content Cleaner
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.
https://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.
https://forums.ni.com/t5/Example-Code/Windows-API-Function-Utilities-32-bit-for-LabVIEW/ta-p/3996462
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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 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