how can i make an infinitely simulating model in simulink?

조회 수: 44 (최근 30일)
Rani V.S
Rani V.S 2014년 5월 28일
댓글: Alexander Kasper 2023년 9월 27일
Normally in simulink we specify the time for simulation. But I want to implement an image processing system which continuously take images from a camera as input. The system should work like code inside a while loop.Is it possible to create such a system in simulink? How can I implement such a system?

채택된 답변

Chandrasekhar
Chandrasekhar 2014년 5월 28일
편집: Chandrasekhar 2014년 5월 28일
enter the stop time of the simulink model as 'inf' and run the model. This will execute the model in an infinte loop
  댓글 수: 4
Ankita Ranjan
Ankita Ranjan 2020년 8월 14일
How much time will this take, simulating the model to infinity ?
Alexander Kasper
Alexander Kasper 2023년 9월 27일
until infinity or until you stop the simulation lol

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

추가 답변 (1개)

Abhishek M
Abhishek M 2014년 5월 28일
Hi Rani,
You can simulate your Simulink model by using "simout" command through the code.
  댓글 수: 2
Rani V.S
Rani V.S 2014년 5월 28일
simout is a sink and it is used to write data to workspace. how can I use this for infinite simulation?
Abhishek M
Abhishek M 2014년 5월 28일
The simout which you are talking is a sink block in the Simulink library called as "to workspace block". but I am referring about the "command simout" used in coding. calling the model via the "sim" command executes/simulates your model. now you can call your model by placing it inside the infinite while loop through a code. and finally you can get your required outputs to workspace through the "simout"command.

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

카테고리

Help CenterFile Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by