Patrick,
proc_manager.lvproj and the associated VIs do contain much of the functionality I am looking for. The user interface in TaskManager.vi does show CPU load, memory usage, and a lot of process specific information. I might be able to derive the system CPU load and Memory usage from the data. This is definitely a useful project. Someone put some time in to make the project work. The other three VIs each make use of a library call from a DLL (Dynamic-Link Library). The required Dynamic-Link Libraries are included in the project. This really is a great solution.
wtsapi32.dll, and psapi.dll are Microsoft Libraries. wtsapi32.dll and psapi.dll are proprietary to Microsoft. You can definitely find them in C:\WINDOWS\system32\. Sadly, this limits the VI to systems running a Microsoft operating system. I would not be surprised if the specifics of the DLLs changed over operating system versions.
I would prefer to find something a little closer to platform independent, but the idea of platform independent code is wishful thinking.
A close example might be getting the complete number of processing cores on a system by packages times, cores per package, times logical processors per core. This information can be obtained from the CPU Information Function:
http://zone.ni.com/reference/en-XX/help/371361F-01/glang/cpu_information/I say might be because according the site the function requires the base package. I am not sure if the base package is applicable to Windows, Mac, and Linux. Is it applicable to Windows, Mac, and Linuz
In my searching around online today, I did find something which has more information. sysinfo.zip has all of the information regarding short and long term storage. The user interface shows Operating system, Windows Directory, System Directory, Total Space on Drive C (MB), Free Space on Drive C (MB), Total Physical Memory (MB), Free Physical Memory (MB), Total Virtual Memory (MB), and Free Virtual Memory (MB). Investigating the C code a little shows it too is for Windows.
I can pull information from both to get all the information needed. It will work on Windows at least
😉 Thank you for your response. It has been most helpful.
Larga Vida y Prosperidad,
Bill