Solver Profiler: Operands to the || and && operators must be convertible to logical scalar values

5 ビュー (過去 30 日間)
Ryley Hindman
Ryley Hindman 2020 年 7 月 15 日
回答済み: Akram Abdelaziz 2020 年 7 月 27 日
I'm wondering if anyone has had this issue. When I try to open the solver profiler for my Simulink model, I get "Operands to the || and && operators must be convertible to logical scalar values." That's it, it doesn't send me to a specific block or anything. Ordinarily, I would trace down the block that I get sent to and fix the error. However, the model simulates perfectly fine, just the solver profiler won't open. The really weird part is that the profiler used to open just fine for this model. I believe Matlab crashed, and now it won't open.
I'm running the model in 19b. I tried saving it in 16b and opening it with 16b. In that case, the solver profiler opened. However, I really need to be running the model in 19b. I can open up the solver profiler in other 19b models. I also tried reinstalling all of MATLAB/Simulink 19b to no avail. At this point it seems like the model is somehow corrupted, or some configuration parameter is set wrong, but I can't figure out what.
Unfortunately, I cannot share the model.
If anyone has dealt with this issue before, I would appreciate knowing how you solved it!
Thanks!
  2 件のコメント
Ryley Hindman
Ryley Hindman 2020 年 7 月 15 日
Everything has been done in 19b, I just exported it to 16b to see what happened. I updated my question with the fact that the profiler did open on this model before, but no longer does.
Dinesh Yadav
Dinesh Yadav 2020 年 7 月 21 日
It would not be possible to solve without having a look at the model. As you cannot share the model we have no way to help you as I havent encountered this problem yet.

サインインしてコメントする。

回答 (1 件)

Akram Abdelaziz
Akram Abdelaziz 2020 年 7 月 27 日
Try creating a new blank simulink model, and Ctrl+A, copy, and paste your previous model into the new blank model. This way if there is any corruption in the parameters or settings, they won't be transferred with the blocks you copy, I guess.
Good luck.

カテゴリ

Help Center および File ExchangeConfigure Simulation Conditions についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by