implementation of two different time domain
古いコメントを表示
Problem:
- two different time domain where I have sample and hold and, unit delay, and Ccaller code which automatically use a specific time domain and not the one from the "system";
- for "sample and hold" is quite easy: exist a triggerable sample and hold, but not for unit delay and if I place an "m-function" or a Ccaller with a specific time samplig it is synchronized to the system time.
- I am not talking about creating two different sampling time, but creating two "countinuos time" with nested a sampling time.
- In the matter of fact I would like to recrated the "local" time of two different processors with slidly different clock.
Any ideas?
Thanks in advance
4 件のコメント
Yifeng Tang
2025 年 8 月 25 日
Make a subsystem atomic can allow you to specify a fixed sampling time that can be different from that used by the global solver.
Model Reference also allows use of a local solver that can be using a different sampling time.
Just some ideas without understanding your use case too well.
I noticed you put "Simscape" in the Products list. Is that accurate? There may be additonal step that needs to be taken if there is a Simscape network in your model.
Davide
2025 年 8 月 25 日
Davide
2025 年 8 月 25 日
Yifeng Tang
2025 年 8 月 26 日
Indeed, fluid systems (hydraulic, thermal liquid, gas, etc.) usually operates at much lower frequencies than power electronics, or they only need to be simulated at such lower frequencies. If you are able to separate the model into two separate Simscape networks, two local solvers at different time steps should work fine.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Upgrading Hydraulic Models to Use Isothermal Liquid Blocks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!