A few basic Simulink/Simscape questions

10 ビュー (過去 30 日間)
Matthew Mishrikey
Matthew Mishrikey 2025 年 1 月 16 日
編集済み: Fangjun Jiang 2025 年 1 月 16 日
In the past I've generally used Simulink simulations for short bursts of transient analysis.
I was curious if it were possible to use it more like LabView, where a simulation can also run forever (tstop = inf), and you can interact with and modify the setup in run time by pushing buttons (opening and closing SimScape circuits).
Regarding memory, I would not want to store all time data. It would be good to store the trailing 10000 points. I'm not sure how to do that either.
  1 件のコメント
Matthew Mishrikey
Matthew Mishrikey 2025 年 1 月 16 日
Here is something I just threw together that does what I think I need. Not sure how to handle the memory though. If there are a lot of measurements, the memory would fill pretty quickly.

サインインしてコメントする。

採用された回答

Fangjun Jiang
Fangjun Jiang 2025 年 1 月 16 日
run forever (tstop = inf)
Yes. Set the simulation stop time to be inf
store the trailing 10000 points
Yes. Limit the data points of Scope or data logging.
interact with and modify the setup in run time by pushing buttons
Yes with limited capability. Certain block parameters can be changed while the simulation is running and it will take effect right after change.
  2 件のコメント
Matthew Mishrikey
Matthew Mishrikey 2025 年 1 月 16 日
If I limit the data points on the scope, does that just limit what is displayed? Is memory filling up anyway?
Fangjun Jiang
Fangjun Jiang 2025 年 1 月 16 日
編集済み: Fangjun Jiang 2025 年 1 月 16 日
I don't think the memory will be filling up. Otherwise, it does not make sense. I've been running some simulation for a very long long time.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by