Error -2233 when Monitoring CPU Usage on Real-Time Embedded Targets

Updated Dec 18, 2023

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW Real-Time Module
  • LabVIEW

Issue Details

I want to monitor CPU usage on the real-time embedded target VI. When I develop the real-time target VI from the host computer, it works normally. But, after deploying it as the start-up executable, it does not work on the standalone real-time target. From the error indicator of RT Get CPU Loads.vi, I get the following error:
Error -2233 occurred at an unidentified location
Possible reason(s):
LabVIEW:  Unable to retrieve CPU load information. Verify that CPU load monitoring is enabled on the target.

Solution

When you use RT Get CPU Loads.vi on the real-time embedded target with the Embedded UI enabled, LabVIEW is not able to retrieve CPU load information. You can find out this issue in LabVIEW 2016 Real-Time Module Known Issues. There are two options to avoid this:
  • Disable Embedded UI option of Startup Settings section of the System Settings tab in NI-MAX.
    1. Open MAX.
    2. Expand Remote Systems in the Configuration window.
    3. Select your real-time controller.
    4. In the main window, you can find out the System Settings tab in MAX.
  • You can use System Configuration API to get CPU and memory usage information on the real-time embedded target. For more details, refer to Monitoring CPU and Memory Usage on Real-Time Embedded Targets ​​​​​.