Transport Delay in Realtime simulation

4 ビュー (過去 30 日間)
Mirko Novakovic
Mirko Novakovic 2023 年 1 月 29 日
回答済み: Samhitha 2025 年 4 月 26 日
Hello,
I set the simulation time to "inf" in order to be able to change the parameters during real-time.
However it seems that Transport Delay block is not working in this mode. When I switch to finite time, it is working, but then I can not change the parameters real-time.
How to solve this?
Thanks
M.

回答 (1 件)

Samhitha
Samhitha 2025 年 4 月 26 日
The Transport Delay block pre-allocates a buffer based on the simulation stop time. When the stop time is inf, it cannot allocate the buffer, so it fails to work correctly. Use the Variable Transport Delay or Variable Time Delay blocks, which do not rely on a pre-allocated buffer.
For more details you can go through the following documentation:

カテゴリ

Help Center および File ExchangeSimulink Real-Time についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by