matlab is stuck when using logical operators

My simulink file has some conditions checking using logical operators and if condition using switch block.But after running , file is stuck and not able even to end task using task manager.
Please anyone help me to figure out thi sissue.these conditions are meant to check alwyas during the time of simulations .

回答 (1 件)

Srimouli Rukmabhatla
Srimouli Rukmabhatla 2020 年 3 月 18 日

0 投票

Hi,
You may use the if action subsystem block , switch action subsystem block rather than using if and switch blocks. Example model is attached.

この質問は閉じられています。

質問済み:

NN
2019 年 11 月 19 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by