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일)
이전 댓글 표시
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?
댓글 수: 0
답변 (2개)
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".
댓글 수: 0
Andreas Schmidt
2017년 6월 9일
댓글 수: 1
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!