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

4 views (last 30 days)
tg = slrealtime;
slbuild('model'); --> build application
tg.load('model'); --> deploy to target
tg.start; --> start application
What is the command to "Connect Model"?
samuel kamajaya
samuel kamajaya on 9 Aug 2021
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"

Sign in to comment.

Answers (2)

Chris Zhang
Chris Zhang on 6 Aug 2021
Chris Zhang
Chris Zhang on 9 Aug 2021
Once the application is loaded on target computer by tg.load(gcs), you can use tg.setparam command to modify parameter values.

Sign in to comment.

Stefanie Schwarz
Stefanie Schwarz on 26 Jan 2023
Edited: Stefanie Schwarz on 26 Jan 2023




Community Treasure Hunt

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

Start Hunting!