Simulink Real-Time - What is terminal command to "Connect Model"?

조회 수: 2 (최근 30일)
samuel kamajaya
samuel kamajaya 2021년 8월 4일
편집: Stefanie Schwarz 2023년 1월 26일
tg = slrealtime;
slbuild('model'); --> build application
tg.load('model'); --> deploy to target
tg.start; --> start application
What is the command to "Connect Model"?
  댓글 수: 2
Jonas
Jonas 2021년 8월 5일
I am not sure which action you are missing, is there anything you cannot do with the commands mentioned here?
samuel kamajaya
samuel kamajaya 2021년 8월 9일
i cannot find equivalent command to the "connect model" shown in the picture above.
If I click this button. it allows me to modify the model variables in real time. for example, i can modify constant block,etc.
I did try tg.connect, and it doesn't behave like "connect model"

댓글을 달려면 로그인하십시오.

답변 (2개)

Chris Zhang
Chris Zhang 2021년 8월 6일
tg=slrealtime;
tg.connect;
  댓글 수: 2
samuel kamajaya
samuel kamajaya 2021년 8월 9일
i need to connect to the model to modify some values on my model in realtime.
tg.connect doesn't solve this issue.
Chris Zhang
Chris Zhang 2021년 8월 9일
Once the application is loaded on target computer by tg.load(gcs), you can use tg.setparam command to modify parameter values.

댓글을 달려면 로그인하십시오.


Stefanie Schwarz
Stefanie Schwarz 2023년 1월 26일
편집: Stefanie Schwarz 2023년 1월 26일

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by