Why can't I use the "Load Application" button in my deployed SLRT app to switch between MLDATX files to run on my Speedgoat target?
Show older comments
I have created a GUI with App Designer to interact with a Simulink Real-Time (SLRT) simulation running on my Speedgoat target. When running the app in MATLAB, I can switch between multiple MLDATX real-time application files to run on my Speedgoat using the "Load Real-Time Application" dialog:

Then, I packaged this app into a standalone executable using MATLAB Compiler. However, when I try to click the "Load Application" button in the deployed SLRT app, either nothing happens (no dialog opens), or the following error occurs when attempting to load the MLDATX file:
Dot indexing into the result of a function call requires parentheses after the function name. The supported syntax is 'sIrealtime().internal'.
Since R2024a, the error is:
Error communicating with target 'xx.xx.xx.xx': Specify the real-time application name in the 'Application' property of the Load Button component in the instrument panel app.
I also tried to implement a manual logic in my app using app.tg.load() that switches between MLDATX files of the same name located in different folders. This works when launching the app from MATLAB, but not when it's deployed.
Accepted Answer
More Answers (0)
Categories
Find more on Real-Time Application Instruments in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
