Why do I get an error saying my Simulink Real-Time model is out-of-date and must be rebuilt?

59 vues (au cours des 30 derniers jours)
I am trying to load a compiled Simulink Real-Time application .MLDATX file on my Speedgoat target computer. The application was compiled on a different PC, or on the same PC but a long time ago. When I do this, I may get the error message:
Error using slrealtime.Target/throwError
Cannot load 'model' on target 'TargetPC1': Cannot install 'model'
on target 'TargetPC1': 'model' is out-of-date and must be rebuilt.
Error is slreatime.Target/load
Or:
Error using open
Application does not exist.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 31 Août 2023
Modifié(e) : MathWorks Support Team le 2 Juin 2023

Try this workaround

To resolve this error message, rebuild the model on the development PC that is connected to the target. To do this, open the Simulink model, and in the Real-Time tab, select "Run on Target" > "Build Application". This assumes that you have the Simulink model available, and that you have access to SLRT Developer Engineer licenses (MATLAB, Simulink, MATLAB Coder, Simulink Coder, Simulink Real-Time).
 

What this issue means

There may be several possible reasons for this error message:
(1) The most common reason for this error is that the real-time application MLDATX file was built using a different MATLAB release, or using a different update of the MATLAB release compared to the PC that's connected to the target. It is likely that not all users contributing to the project are on the same update of the release.
You should verify that all the computers being used are on the same MATLAB release and update as per:
>> version
(2) Verify that the version of Speedgoat I/O Blockset installed on all development PCs has the exact same version installed. You can check the version of Speedgoat I/O Blockset using:
>> speedgoat.version
(3) Verify that the versions of Simulink Real-Time Target Support Package installed on all development PCs are also identical. You can check the version of the support package using:
>> matlabshared.supportpkg.getInstalled
(4) If you use version control, the reason for the error could be that the tool has corrupted the real-time application MLDATX file.
To resolve this, make sure that you have registered the MLDATX file extension as binary format with your third-party source control tool. If you do not register the extension, these tools can corrupt the files when you submit them by changing end-of-line characters, expanding tokens, substituting keywords, or attempting to auto-merge. See Register Binary Files with Git for more information.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by