Why the Model Advisor does not flag Switch Case blocks that do not use integer data types or enumeration values for inputs?

조회 수: 2 (최근 30일)
Hi everyone,
I am using the Model Advisor to check my model in order that it complies with functional safty standards (e.g. ISO26262).
The figure below shows a simple overview on the model. As you can see, the data type of the input is single.
According to the Rule hisl_0011 described below (click the hyperlink for more details about the rule), the input signal to a Switch Case block must be an integer or an enumeration value (see Description C). It means that the data type of the input signal in my model is NOT compliant with this rule. Therefore, in my opinion, the error in my model should be displayed after running the check (By Task > Modeling Standards for ISO 26262 > High-Integrity Systems > Simulink > Check usage of Ports and Subsystems Blocks)
However, after checking the model against this rule, I got the result as shown below reporting that the check passed.
The reason is that the Model Advisor DO NOT check whether the input data type is an integer or an enumeration value. Only when I click the button Help, I get the information saying that the check does not flag Switch Case blocks that do not use integer data types or enumeration values for inputs.
So my questions are now:
1) Why does the Model Advisor not flag this error?
2) Can I draw a conclusion that all check results reported by the Model Advisor are not reliable, although we get Passed?
3) Is it possible to add this informaiton to the Model Advisor dialog window and to the modeling guidelines in order to remind users of issues that the Model Advisor is not able to check?
Thank you!
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2018년 12월 5일
+1. Good question. Please forward this to the Mathworks tech support or submit an improvement request.

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

채택된 답변

Jerry George
Jerry George 2019년 6월 18일
This issue has been fixed in MATLAB R2018b.

추가 답변 (0개)




Community Treasure Hunt

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

Start Hunting!

Translated by