Invalid Class Error When Building Simulink Model Using HDL Coder Package

Updated Apr 17, 2025

Reported In

Software

  • IP to FPGA Conversion Utility

Driver

  • NI R Series Multifunction RIO

Issue Details

I have a Simulink model and want to generate a bitfile using HDL Coder Addon package. When I want to compile the bitfile in the HDL Workflow Advisor, I encountered the error below. 

 

Solution

There are two possible reason that could caused this issue. 

  1. WMI Service Is Not Running
  2. Insufficient Privileges When Running MATLAB
  3. WMI Service Is Reporting Errors
  4. IT restrictions

To resolve this issue, try the following steps below. 

  1. Open Control Panel>Services and check that Windows Management Instrumentation is Running and set to Automatic startup.
  2. Try to run MATLAB with admin elevated privileges.
  3. Check if WMI service is reporting any errors
  • Open the Run tool by pressing Windows+R 
  • Enter wmimgmt.msc and click OK. This will open the wmimgmt console.
  • Right-click on Console Root>WMI Control (Local) and select Properties.
  • In the General tab, check the message log to see if it is reporting WMI errors. If the following error appears, it could indicate a low-level WMI repository corruption and requires IT department for repair.