Usage of Switch block according to the MAAB guidelines

조회 수: 5 (최근 30일)
bhavatharini T
bhavatharini T 2022년 8월 18일
댓글: bhavatharini T 2022년 8월 23일
Ques No 1 : Is it Compulsary to use only ~=0 condition out of 3 default conditions given in the switch block in a model?
Ques No 2: Is it against the guidelines to use the other two criteria, U2> threshold, U2>=threshold?

답변 (1개)

Andy Bartlett
Andy Bartlett 2022년 8월 18일
To satisfy the MAAB guideline, drop in a relational operator block and a constant just prior to the switch block's middle input.
Representing the relational operation with blocks rather then having this "more advanced" configuration tucked inside the Switch Block will be more aligned with the general spirit of the MAAB rationale.
"It is easier to understand specifications when the configuration is applied with Simulink Blocks ..."
  댓글 수: 3
Andy Bartlett
Andy Bartlett 2022년 8월 19일
I was not a member of the committee that established these guidelines, so I cannot fully answer your question.
But my understanding is that MAAB Guidelines are similar to MISRA rules/guidelines.
They were put in place based on a history of prior mistakes that required a lot of effort to correct later. The high level concept is that these practices will reduce the frequency and cost of mistakes.
bhavatharini T
bhavatharini T 2022년 8월 23일
Ok Sir..Thanks alot

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

카테고리

Help CenterFile Exchange에서 MAB Modeling Guidelines에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by