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

5 Ansichten (letzte 30 Tage)
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 Kommentare
Ryley Hindman
Ryley Hindman am 15 Jul. 2020
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 am 21 Jul. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Akram Abdelaziz
Akram Abdelaziz am 27 Jul. 2020
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.

Kategorien

Mehr zu Configure Simulation Conditions finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by