Need help regarding visual actuators (lights) in Simulink
古いコメントを表示
Hi everyone, I am almost new in Simulink and need urgent help regarding showing the final result of my model. The way I have implemented my lights as an actuator (as I asked in my previous questions ) are really slow and not functional at all. I am searching for the best possible ways to show the results of simulation with turning some lights on or showing some picture as alarm to user. I am sure it is possible in Simulink but could not find it. I also dont know which kind of visual actuators are available for a Simulink model.
Any idea would be greatly appreciated.
回答 (1 件)
Swarooph
2016 年 8 月 4 日
1 投票
5 件のコメント
Saeed Soltani
2016 年 8 月 5 日
Swarooph
2016 年 8 月 5 日
If I remember correctly from one of your earlier questions. You were reading in images to set block mask? Instead, maybe you should try setting only the background/foreground colors of the respective blocks. This could be faster, I am not sure. Some info here. How to do it using commands is here.
In general I am not so sure if its a good idea to have the model blocks to change while the simulation is running. Lamp block above was designed to be updated every time step so would probably be the fastest. Otherwise, consider simplifying the approach by using a display block to display a 1 or 0. I would assume this would be faster as well.
Saeed Soltani
2016 年 8 月 8 日
Swarooph
2016 年 8 月 8 日
Have you tried the color approach to determine if the speed problem actually exists similar to the image approach? I think this would be a good exercise so that we can understand if the performance issue here is because of reading an image or using set_param.
Saeed Soltani
2016 年 8 月 11 日
カテゴリ
ヘルプ センター および File Exchange で Interactive Model Editing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!