필터 지우기
필터 지우기

How to create a closed loop with initial solution

조회 수: 2 (최근 30일)
Nico0789 Mazzi
Nico0789 Mazzi 2013년 9월 19일
I would like to create using Simulink a closed loop system in which i provide the initial solution to start the simulation and than the model has to do a loop every dt (es. 0.05 s) using the solution of the previous loop. How is it doable?

채택된 답변

A Jenkins
A Jenkins 2013년 9월 19일
You can feedback your previous result using a delay block or memory block.
The intial condition for either of these blocks can be set by double clicking on it.
  댓글 수: 2
Nico0789 Mazzi
Nico0789 Mazzi 2013년 9월 20일
thank you for the perfect answer! is possible to control the number of loops? for example can I impose the model to do 1 cycle per second?
A Jenkins
A Jenkins 2013년 9월 20일
Try the "Unit Delay" block instead of Memory. You can set the sample time to be every 1 second.
(Depending on what you need to do, another simple option may be to change the solver in the Configuration Parameters to Fixed Step and set the step time to 1 second.)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by