How to upload new values from Workspace to simulink in real time?

1 回表示 (過去 30 日間)
Andrey Zhakulin
Andrey Zhakulin 2020 年 11 月 18 日
回答済み: Prudhvi Peddagoni 2020 年 11 月 25 日
Hello!
I am working on a crane that uses values that are generated in the workspace and when I run simulink the crane moves to those coordinates. But I need to stop the simulink every time I want to change the crane coordinates. I want to make an array of coordinates in workspace and have them all run in simulink one after the other.
Is there some tool you can add in simulink so it can update values in my block or some other method?

回答 (1 件)

Prudhvi Peddagoni
Prudhvi Peddagoni 2020 年 11 月 25 日
Hi,
You can use from workspace block to do this. You need to build a variable with first column with time values and use other columns for the input data.
Hope this helps.

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by