There are varying options to monitor CPU and memory usage on an NI Real-Time (RT) Controller. The amount of memory available depends on several factors, including the installed software and user application memory requirements.
This guide will walk through different methods of accessing this information from a Windows operating system:
For Linux Real-Time controllers, memory management and reporting differ from other Real-Time targets. Refer to the Memory Reporting Issue with NI Linux Real-Time OS Target for information on how to implement memory monitoring.
You can also select the individual Shared Variable that holds the Free Memory value to view the available memory.Note: if you cannot see this information in the NI Distributed System Manager, refer to CPU and Memory Usage Not Visible in NI Distributed System Manager and ensure the System State Publisher is installed in your Real-Time controller.Externally with the Real-Time Trace Viewer:Another option to monitor CPU usage on RT targets is to use the Real-Time Trace Viewer. With the Real-Time Trace Viewer, you can create execution traces that allow you view memory allocation, CPU usage, and thread scheduling. The Real-Time Trace Viewer is included in LabVIEW 2014 Real-Time Module and later releases. Releases of the LabVIEW Real-Time Module prior to 2014 packaged the Real-Time Trace Viewer as a separate toolkit (the Real-Time Execution Trace Toolkit). Refer to Debugging Multicore Applications with the Real-Time Trace Viewer for more information on using the Real-Time Trace Viewer.LabVIEW versions 8.6 and Previous:
The Real-Time System Manager displays details about VIs running on an RT target and provides a dynamic display of the performance of the target. This will provide the most detailed view of memory usage.
Select Operate»RT Engine Info to view the memory usage information of the RT Engine. You will see both the Total Memory and the Free Memory.
Add the following line to the labview.ini file on your host computer and restart LabVIEW:
You can then select Operate»RT Engine Info to view the memory usage of the RT Engine.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.