Why do I get the error "Real-time application was not included in the standalone executable"?

2 views (last 30 days)
I am trying to run a real-time simulation on my Speedgoat target from a standalone application deployed using MATLAB Compiler, but I encounter the following error:
Cannot load 'slrt_ex_osc' on target 'TargetPC1': Cannot install
'slrt_ex_osc' on target 'TargetPC1': Real-time application
'slrt_ex_osc.mldatx' was not included in the standalone executable.
Or:
Error communicating with target 'TargetPC1': Real-time application
'slrt_ex_osc' was not included in the standalone executable.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Feb 2024
Edited: MathWorks Support Team on 29 Feb 2024
The MLDATX file needs to be included in the MATLAB Compiler project when packaging the application. To do this, make sure that the MLDATX file is in the same folder as the MLAPP file. Furthermore, specify the MLDATX file under "Files required for your application to run" in the Application Compiler:
Note that deployed SLRT apps can only be used with a single MLDATX file. 
See the following documentation page for more information:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!