how can i make an infinitely simulating model in simulink?

85 views (last 30 days)
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?

Accepted Answer

Chandrasekhar
Chandrasekhar on 28 May 2014
Edited: Chandrasekhar on 28 May 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 Comments
Ankita Ranjan
Ankita Ranjan on 14 Aug 2020
How much time will this take, simulating the model to infinity ?

Sign in to comment.

More Answers (1)

Abhishek M
Abhishek M on 28 May 2014
Hi Rani,
You can simulate your Simulink model by using "simout" command through the code.
  2 Comments
Rani V.S
Rani V.S on 28 May 2014
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 on 28 May 2014
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.

Sign in to comment.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!