The simulink simulation slows down when I use a switch, it does not give any error but it stays at .5 second indifinitely!
10 次查看(过去 30 天)
显示 更早的评论
I am trying to select one output from two blocks depending on certain conditions, and then forward that signal as input to another block, but the simulation almost comes to a standstill and I also get no error. What could be the problem?
0 个评论
回答(2 个)
Jesse
2025-11-27,17:09
编辑:Jesse
2025-11-27,17:09
The solution of changing the solver parameters didn't work for me, but I found a workaround :
instead of using the manual switch block, I use the signal compare switch connected to a constant controlled by a push button.
I think the manual switch block is simply broken so I will avoid it in the future.

0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!