Branched Merge Block Check - How do I prevent this warning ?

조회 수: 4 (최근 30일)
Andreas
Andreas 2025년 3월 7일
댓글: Fangjun Jiang 2025년 3월 7일
I have an simple if/else statement, where I link the outputs from the two blocks with the merge block again.
The generated code looks correct, but in the Model Advisor Report I get the warning "Branched Merge Block Check". No matter what I tried, I can’t get the warning off. I am now looking for a solution that does not generate a warning.
Model:
Keywords: Autosar, Outputs are integers with fix comma
Model Advisor Report - Warning:
Interestingly, there are only 2 and not 3 warnings. I don’t understand that either.
Configuration of merge elements:
All three elements are configured equally:

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2025년 3월 7일
Do you have cascaded Merge blocks? Do any of the incoming signals to Merge1 and Merge2 come from a Merge block? Or the output of Merge1 or Merge2 goes to another Merge block?
  댓글 수: 2
Andreas
Andreas 2025년 3월 7일
편집: Andreas 2025년 3월 7일
No I have no cascaded Merge blocks.
In the subsystem "Off" (else) the variables are set only to 0.
In the subystem "Run" (If) the "correct" values of the variables are calculated. This subsystem and all deeper subsystems contains no other merge elements.
The only merge elements (3) I use in the whole model are visible in the model image above.
Fangjun Jiang
Fangjun Jiang 2025년 3월 7일
Can you attach the model? I am interested.

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

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by