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

조회 수: 5 (최근 30일)
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 CenterFile Exchange에서 Configure Simulation Conditions에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by