Simulink covData is missing

16 ビュー (過去 30 日間)
Phil K.
Phil K. 2023 年 2 月 27 日
コメント済み: Robert-Alexandru 2024 年 2 月 13 日
Hi,
I want to save my simulink coverage data and process it further. To test that I used the demo model like described here: Extracting Detailed Information from Coverage Data. I get a coverage report for this model but I cannot access the coverage information in the workspace.
This is how the simOut should look like according to the demo:
This is how it looks like in my command line. The covData field is just missing.
Has anyone experienced this before? I am using Matlab2017b.
BR Phil
  2 件のコメント
Pat Canny
Pat Canny 2023 年 2 月 27 日
I'm curious if coverage is enabled correctly in the model - could you please run this line of code in the Command Window with the example open?
isCoverageOn = get_param('slvnvdemo_cv_small_controller','CovEnable')
Phil K.
Phil K. 2023 年 3 月 16 日
Sry for the late response. Yes the CovEnable is true for me. The CovData was actually in the workspace the whole time. See Zubers answer.
BR Phil

サインインしてコメントする。

採用された回答

Zuber
Zuber 2023 年 3 月 16 日
Hi,
I understand that you are facing issue while trying to access coverage information in the workspace. I have reproduced the same example in MATLAB R2017b. Although the ‘covData’ field is missing from the output, you can still access it from workspace. Below is the screenshot for the same: -
In the newer versions, the field ‘covData’ appears in the command line. You might consider upgrading to a recent version of MATLAB. For more information, please refer to the following link: -https://www.mathworks.com/help/install/ug/get-new-matlab-release.html
I hope this resolves your query.
  2 件のコメント
Phil K.
Phil K. 2023 年 3 月 16 日
Hi,
Thank you very much for your answer. In the meantime we found a different solution but your hint was correct. Sadly we cannot update due to other dependencies with 3rd party tools/projects risks.
BR Phil
Robert-Alexandru
Robert-Alexandru 2024 年 2 月 13 日
Hello! Care to share the solution you found? Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVerification, Validation, and Test についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by