Error using + (line 30) Checksums must match for cvdata operator calculation?

3 ビュー (過去 30 日間)
daniel
daniel 2017 年 3 月 22 日
コメント済み: Davide Frey 2019 年 1 月 24 日
Mathworks,
I have coverage enable in the model, I pull data using fromworkpace blocks, I have multiple test cases, I also use constants (also defined in the work space, constant blocks in the model). If I change a constant value from one test case to another in the workspace and attempt to use the overloaded operator + on the data objects I get the checksum error, why is that? How can I solve this issue?
Thanks Dan
  1 件のコメント
daniel
daniel 2017 年 3 月 22 日
I should also add that the constant is used to change an array size in the model.

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

採用された回答

daniel
daniel 2017 年 3 月 24 日
it was because the model was changing the size of the array between test cases, changes the signature of the data structure, wont let you add the coverage.
  1 件のコメント
Davide Frey
Davide Frey 2019 年 1 月 24 日
As a side note to this answer, you can encounter the same problem when the options "Parameters" is on for the test generation.
In that case, if you define set of parameters that are not made by the same parameter, simulink will assign/change the value of the missing one and maybe the size.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnalyze Coverage and View Results についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by