Faster sample time for a subsystem

Hi everybody,
my simulink model consists several subsystems. I want to simulate the last subystem with a more accurate sampling time (1 ns instead of 10 ms) to get a more accurate resolution of the result. Simulating the whole model with a low sample time would take too much time. The accuracy of the other block is irrelevant because there is only a enable bit calculated if certain conditions are fullfilled. The important calculation is done is the last system. I converted this system into a referenced model, but here I can only increase the sample time e.g. from 1 ms to 10 ms...
Does anyone known if its possible to simulate only a subystem with a higher accuracy?
Thank you and best wishes.

5 件のコメント

Joel Handy
Joel Handy 2019 年 8 月 12 日
There are a couple of ways you can do this. Probably many ways.
Generally when I need to do something like this, I run my model at the same rate as the fastest block and use triggered subsystems and/or stateflow function calls to regulate on which time steps a subsystem is actually run.
Raj
Raj 2019 年 8 月 12 日
Have you tried using Rate Transition Block ? Is it not serving your purpose?
Tobias Betz
Tobias Betz 2019 年 8 月 12 日
You mean if i use a Rate Transistion Block between the 10ms part an the 1ns part it works? But how do I have to set the properties of that block? Do I have to treat the blocks behind as Atomic Units with a more accurate sampling time?
Raj
Raj 2019 年 8 月 13 日
"if i use a Rate Transistion Block between the 10ms part an the 1ns part it works?" - Yes. It should work. That's what rate transition block is supposed to do. Regarding the usage, I recommend checking out the documentation. Its pretty much self explanatory. You just have to set the output sampling time properly.
Murat Kuralay
Murat Kuralay 2020 年 10 月 30 日
How did you solve it ?

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSubsystems についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 8 月 12 日

コメント済み:

2020 年 10 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by