Why do I encounter the error "Function requires Simulink Real-Time Target Support Package" when I run a standalone application?

8 views (last 30 days)
I am trying to run a deployed executable that was created using MATLAB Compiler to communicate with a Speedgoat real-time target computer. However, I get the following error:
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.
However, I cannot access Add-On Explorer through the deployed app.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Sep 2023
When you package MATLAB code or an App Designer app that communicates with a Speedgoat real-time target, wait until "Simulink Real-Time Target Support Package" appears under "Suggested Support Packages" in the Application Compiler app before you package the application:
If you save the Application Compiler session as "prj" File, it should remember this dependency every time you open the "prj" file.
When using the "mcc" command instead of Application Compiler to package the app, the equivalent switch is "-Z" as shown below:
mcc -o SLRT_Application <...> -Z 'Simulink Real-Time Target Support Package'

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!