how can i make an infinitely simulating model in simulink?

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?

 Respuesta aceptada

Chandrasekhar
Chandrasekhar el 28 de Mayo de 2014
Editada: Chandrasekhar el 28 de Mayo de 2014
enter the stop time of the simulink model as 'inf' and run the model. This will execute the model in an infinte loop

4 comentarios

hello,
I have the same requirement. That is to run the simulation continuously. However, if the simulation stop time is "inf" then the memory of the application increases rapidly. Is there any workaround for this?Can we reset the output matrix?
donot log the data while simulating the model
How much time will this take, simulating the model to infinity ?
until infinity or until you stop the simulation lol

Iniciar sesión para comentar.

Más respuestas (1)

Abhishek M
Abhishek M el 28 de Mayo de 2014
Hi Rani,
You can simulate your Simulink model by using "simout" command through the code.

2 comentarios

simout is a sink and it is used to write data to workspace. how can I use this for infinite simulation?
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Prepare Model Inputs and Outputs en Centro de ayuda y File Exchange.

Preguntada:

el 28 de Mayo de 2014

Comentada:

el 27 de Sept. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by