how can i make an infinitely simulating model in simulink?
67 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
更多回答(1 个)
Abhishek M
2014-5-28
Hi Rani,
You can simulate your Simulink model by using "simout" command through the code.
2 个评论
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 Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!