Why do I get the error "Real-time application was not included in the standalone executable"?
3 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2023-5-25
编辑: MathWorks Support Team
2024-2-29
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.
采纳的回答
MathWorks Support Team
2024-2-29
编辑:MathWorks Support Team
2024-2-29
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:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!