Speedgoat target application deployment using ssh/sftp - INITIALIZATION ERROR

조회 수: 10 (최근 30일)
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:
  1. We transferred the .mldatx from Windows to Speedgoat (/home/mldatx/)
  2. On the Speedgoat's terminal, we installed the model using:
slrealtime install --AppName mymodel.mldatx
  1. 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!

채택된 답변

Ravi Kanth Dandamudi
Ravi Kanth Dandamudi 2023년 8월 11일
편집: Stefanie Schwarz 2025년 8월 22일
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개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by