フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is it possible to run an s-function containing a hybrid model (continuous and discrete blocks) in a model with a lower time step size?

1 回表示 (過去 30 日間)
Andreas Schmidt
Andreas Schmidt 2017 年 6 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Is it possible to run an s-function containing a hybrid model (continuous and discrete blocks) in a model with a lower time step size?
The time step size of the s-function is a multiple of the time step size of the main model. I put rate transition blocks at all ports of the s-function, but the simulation won't run.
Is this a general problem or might there be some unlucky settings that keep the simulation from running?

回答 (2 件)

Don Zheng
Don Zheng 2017 年 6 月 8 日
Can you provide an example model? It is unclear what you mean by "an S-function containing a hybrid model".

Andreas Schmidt
Andreas Schmidt 2017 年 6 月 9 日
The model that was compiled to an s-function contains blocks with continuous and discrete sample time, which seems to be called "hybrid" by simulink. Unfortunately I cannot provide the model.
Does that make my question more clear?
  1 件のコメント
Don Zheng
Don Zheng 2017 年 6 月 9 日
I was able to create an S-fcn from a subsystem containing a Constant block with 'Inf' time step (continuous) and a Constant block with '1' second time step (discrete). When running this S-fcn in a model with 0.1s fundamental sample time, things seem to work fine. Do you have an error message when running your model?

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by