Speedgoat target application deployment using ssh/sftp - INITIALIZATION ERROR
11 views (last 30 days)
Show older comments
Michel Africano
on 24 Jan 2023
Edited: Stefanie Schwarz
on 22 Aug 2025
Hello,
We have a Speedgoat target computer running on QNX (Simulink Real-Time R2021b) and a Windows computer hosting Matlab. We successfully built our model and generated a .mldatx file. We then deployed it using the Matlab GUI and run it. Everything works just fine. The issue comes when we take the same .mldatx file from the Windows computer and manually transfer, install, and load it on the Speedgoat. Indeed, after loading the model, the latter fails to initialize giving "INITIALIZATION ERROR."
Here is what we did to load the model:
- We transferred the .mldatx from Windows to Speedgoat (/home/mldatx/)
- On the Speedgoat's terminal, we installed the model using:
slrealtime install --AppName mymodel.mldatx
- We loaded the model using:
slrealtime load --AppName mymodel
Is our process correct? Could you please help us deploy the model without using Matlab or its engine?
Thank you!
Accepted Answer
Ravi Kanth Dandamudi
on 11 Aug 2023
Edited: Stefanie Schwarz
on 22 Aug 2025
Hello Michel and Shlomi,
It is my understanding, you are able to build the model and generate the mldatxfile and could deploy it from the MATLAB, but you are facing issueswhile trying load directly on the target after transferring the mldatx file.
The steps you are following are correct, but by looking at the error, I assume that this could be due to executing the commands as root user. However, 'slrealtime' or other user commands should be executed as slrt user.
If my assumption is correct and the commands were executed as root user, please follow the steps below to remove the application folder created by rootand to deploy the application on speedgoat.
1) Open PuTTY connection with (user: root / pw: root).
2) Remove the existing application folders by executing:
rm -rf /home/slrt/applications/mymodel
3) Close the PuTTY connection.
4) Open PuTTY connection with (user: slrt / pw: slrt).
5) Rerun the commands to install and load the application:
5.1)
slrealtime install --AppName mymodel
5.2)
slrealtime load --AppName mymodel
If still any issue is observed, please execute the following command.
slrealtime stop
(just to clear if any files created earlier when exectued as root), and then execute the load command again as mentioned in 5.2.
Please refer to the documentation below for more information:
0 Comments
More Answers (0)
See Also
Categories
Find more on Target Computer Setup 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!