Getting/Setting Sampling Time of S-Function (Level 2)
3 ビュー (過去 30 日間)
古いコメントを表示
I'm having trouble with getting sampling time of S-Function(Level 2). Documentation says there's some way to set-up sampling time but, it's mostly about it's type(discrete, inherited, continuous...). Especially, Continous(inf), But I need sampling time in my simulation and even it says continuous, It must have sampling time since it's computer. So question is how to get/set sampling time of continuous sampling S-function.
2 件のコメント
Michelle Wu
2017 年 3 月 13 日
Your best reference for understanding the S-Function sample time would still be the following two docs:
which I think you probably have came across already.
Unfortunately for a system to be continuous, its sample time has to be 0. It is not a limitation posed by Simulink or S-Function, but one posed by the theory behind the concept of sampling: for a continuous system, the frequency has to be infinite and the sample time is thus 0.
If you would like to have a small sample time (like a high frequency CPU), then the proper choice is probably "discrete" with a very small sample rate.
回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!