MATLAB Answers

Why does "rtwbuild" not generate the xpckrnl.rtb and .mldatx files when I build a Simulink Real-Time application for Standalone Mode in R2019b and later?

8 views (last 30 days)
We are using Simulink Real-Time in Standalone Mode , i.e., we run the real-time application on the target computer independent of the development computer.
In previous MATLAB releases, I selected Standalone Mode in Simulink Real-Time Explorer, and then used the command "rtwbuild" to created the real-time application (xpckrnl.rtb and *.mldatx).
Now we have upgraded to R2019b, but the "rtwbuild" command does not seem to generate these files anymore. It works if I click the "Build Application" button in the Simulink UI, but how can I create the .rtb and .mldatx files programmatically using R2019b or later?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Jul 2020
This is a documented change in behavior. See the following R2019b release note on "Standalone boot mode process":
To build a real-time application for Standalone boot mode in R2019b and later, use these commands:
rtwbuild('model_name');
tg = slrt('target_name');
createStandAlone(tg,'model_name');
This process generates a "model_name_slrt_emb" folder that contains the generated files for standalone boot. The generated files are the same as in previous releases.
For more information, see the "createStandAlone" function:

  0 Comments

Sign in to comment.

More Answers (0)


Translated by