Why do I get errors regarding missing add-ons with my deployed SLRT app?

I am trying to run a real-time simulation on my Speedgoat target from a standalone Simulink Real-Time (SLRT) app deployed using MATLAB Compiler, but I encounter one of the following errors: 
Error communicating with target 'xxx.xxx.x.x': Unable to
connect to target computer 'xxx.xxx.x.x': Function
requires Simulink Real-Time Target Support Package.
Open Add-On Explorer to install the support package.
Or I get the following error regarding "sg.mw.TargetImplQnx" or "sg.mw.TargetImplLinux":
Error communicating with target 'xxx.xxx.x.x': Error on
target computer 'xxx.xxx.x.x': Unable to resolve the
name 'sg.mw.TargetImplQnx'. You tried to connect to a
Speedgoat target machine. Please download and install
the latest version of the Speedgoat I/O Blockset from
speedgoat.com/login.

 采纳的回答

The error messages indicate that required add-ons were not included when compiling the application.
To correct this, the app creator needs to follow the steps below.

For R2025b and earlier:

  1. Install Speedgoat I/O Blockset and the Simulink Real-Time Target Support Package.
  2. Rebuild the real-time application MLDATX file.
  3. In the Application Compiler app, wait until "Simulink Real-Time Target Support Package" appears under "Suggested Support Packages" before you package the application.

For R2026a and later:

  1. Install Speedgoat I/O Blockset.
  2. Rebuild the real-time application MLDATX file.
  3. Include slrealtime.includeAddonFilesForDeployedApp('x64') in the app's StartupFcn code.

Further reading:

For detailed instructions and tips for deploying SLRT apps as standalone applications, see:

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Get Started with Simulink Real-Time 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by