Can I use MATLAB Compiler to create a standalone app for controlling a Simulink Real-Time application in R2020b and later?

30 views (last 30 days)
I migrated to MATLAB R2020b. I created a script or App Designer app to control my real-time application running on a Speedgoat machine.
However, when I deploy this app to a standalone executable using MATLAB Compiler and try to execute this standalone GUI, I get the following error:
Invalid default value for property 'tg' in class 'App':
Undefined function 'slrealtime' for input arguments of type 'char'.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 10 Sep 2025
Edited: MathWorks Support Team on 10 Sep 2025
From R2021b onwards, you can use MATLAB Compiler to create a standalone executable for controlling real-time applications. You can deploy instrument panels created with App Designer, or simple MATLAB programs that use the MATLAB API for Simulink Real-Time (SLRT). For a basic example, see: Create Standalone Instrument Panel App by Using Application Compiler 
By using the MATLAB Compiler workflow, the end user does not require any MATLAB license to interact with the Speedgoat target computer. The SLRT app will run against the royalty-free MATLAB Runtime.
For designing an app tailored to your real-time applications, and things to keep in mind for deployment, the following MATLAB Answers are a good starting point:
Note that the Simulink Compiler product is not required for this workflow.
💡 App Designer support for SLRT has received several new features, and we recommend using at least R2024b if possible. For a summary of the latest updates, see the SLRT Release Notes. You will also benefit from continuous enhancements in MATLAB app performance and responsiveness.

More Answers (0)

Categories

Find more on Code Generation in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!