Example Code

Monitoring CPU usage on Windows from LabVIEW

Code and Documents

Attachment

This VI uses the Windows .NET Framework to create a PerformanceCounter object that returns the total processor usage at that point in time.

If your computer has more than one processor, the InstanceName can be changed from _Total to the individual processor you want to monitor.  For instance, if there are two processors, valid InstanceName values would be 0 and 1.

CPU Usage.Png

Donovan

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors