How do I collect coverage for a MATLAB System block in Simulink?

1 回表示 (過去 30 日間)
Pat Canny
Pat Canny 2020 年 10 月 22 日
回答済み: Pat Canny 2020 年 10 月 22 日
I was running the Generate Code for Lane Marker Detector example , which has a MATLAB System block in it, and was only able to collect Execution coverage for the MATLAB System block.

採用された回答

Pat Canny
Pat Canny 2020 年 10 月 22 日
MATLAB System objects can receive Decision, Condition, and MCDC when they are configured to simulate using Code Generation.
In the example, the MATLAB System block is configured to simulate using Interpreted execution.
Simply change this to "Simulate using code generation" in the Block Parameters of the MATLAB System block.
You can then see the resulting coverage of the MATLAB code by generating a coverage report.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCollect Coverage for Models についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by