Simscape/Powergui diognastic - what does a red frame mean?

조회 수: 1 (최근 30일)
Saeed Ahmadzadeh Mahboobi
Saeed Ahmadzadeh Mahboobi 2021년 2월 14일
댓글: Saeed Ahmadzadeh Mahboobi 2021년 2월 15일
Hi Everyone
Usually the blocks have a black frame in simulink. But what does it mean, when a Simscape/Powergui block has a red frame? (picture below)
When I go the Debug/Diognastic , everything is apparently ok (picture below) !!!!
And when I run the model, the simulation starts and finishes without eny errors, sometimes I get weird results though
So what's wrong with the Powergui block?

답변 (1개)

Jonas
Jonas 2021년 2월 15일
When there is an error/issue with blocks at build time, the diagnostic viewer can allow the blocks which cause the error to be highlighted with a red border. Similarly, some functionality allow blocks to be highlighted in yellow, like when highlighting a Scope block or when tracing the source of a sample time.
What I have experienced is that Simulink changes the border to red in these cases, but then never properly removes the red border or highlighting...
So what I believe has happened on your Simulink model, is that there was an error in the past which changed the border of the Powergui block to red, but although you have solved the error the red border was never changed back to black automatically by Simulink.
You can manually change back the border color by right clicking on the block > Format > Foreground color > Black.
  댓글 수: 1
Saeed Ahmadzadeh Mahboobi
Saeed Ahmadzadeh Mahboobi 2021년 2월 15일
Thanks for the answer.
I still don't know, because the simulation runs without any errors, but the Integrator Block doesn't work properly !!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by