필터 지우기
필터 지우기

Effect of using masked subsystem on simulation speed?

조회 수: 1 (최근 30일)
Jagmohan singh
Jagmohan singh 2012년 8월 2일
Hello In my simulink model I am using a number of masked blocks. Each block based on their parameter and connection modifies itself. I want to know that how the simulation speed can be affected by using such masked subsystem inside the model.
Thanks

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 8월 2일
AFAIK, the only effect of masks on simulation performance is that at initialization time, block dialog parameters are first evaluated in the mask workspace (if using mask workspace variables in the dialog). Initialization happens once at the start of simulation time and every time you Update Diagram (Ctrl+D) during simulation.
Are you seeing any runtime overhead?
  댓글 수: 4
Jagmohan singh
Jagmohan singh 2012년 8월 6일
Actually initialization time is very less compared to run time in my case. So I could see it is the simulation time. Here I applogize for my mistake that I didn't look at the s-function properly in both cases. it was the matlab s-funtion in one case and C-Mex in another case. Now I have converted it into C-Mex now I see simulation time is of the same order for both the cases.
Kaustubha Govind
Kaustubha Govind 2012년 8월 6일
Great! Glad you were able to find the answer.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by