MATLAB Answers

Inifite simulation stop time / Scope problems

6 ビュー (過去 30 日間)
Mathieu Risseeuw
Mathieu Risseeuw 2019 年 5 月 22 日
コメント済み: Mathieu Risseeuw 2019 年 5 月 23 日
Dear Sir / Madam,
I am using a Stateflow in Matlab simulink to determine whether a controller subsystem is enabled or disabled. Therefore, I have the simulation model stop time set to 'infinite' which also requires a variable step time.
The problem here that when I plot a value from the subsystem (cylinder displacement) into a simulink scope, the x-axis shows inrealistic time values of around 300 * 10^5 seconds.
What I actually would want to accomplish is an inifite stop time, but with realistic (RealTime) time values.
Is this possible?
Thanks in advance

  0 件のコメント

Sign in to comment.

回答 (1 件)

Toshinobu Shintai
Toshinobu Shintai 2019 年 5 月 23 日
Dear Mathieu Risseeuw.
I still don't understand fully what is the problem for you, but
is the "simulation pacing" solve your problem?
If the scope of the model actually shows inrealistic value, please report as a bug.
(For example, real time step is 4.01s, but scope time step is 50700s.)
Thank you.

  5 件のコメント

表示 2 件の古いコメント
Toshinobu Shintai
Toshinobu Shintai 2019 年 5 月 23 日
Now I see your problem.
Because the Simulink time step is absolute,
you cannot change local block time from the base of Simulink.
If you use "To Workspace" block, you can log data exactly when the enabled(triggered) subsystem worked.
But it doesn't contain the local time step.
Please refer to the attached file.
Thank you.
Toshinobu Shintai
Toshinobu Shintai 2019 年 5 月 23 日
Sorry for delaying my answer.
I'm glad that you solve the problem.
Mathieu Risseeuw
Mathieu Risseeuw 2019 年 5 月 23 日
Thank you so much for your time. Have a nice day

Sign in to comment.

製品


Translated by