Test Manager > Open Coverage Report > Error : Dot indexing is not supported for variables of this type.

9 次查看(过去 30 天)
I am running a tests using simulink test. When I try to open the aggregated coverage report from Test Manager: Results and Artifacts, I am getting an Dot indexing error.
Detailed error mentioned below:
An error occurred while stepping through the simulation and the simulation was terminated
Caused by:
Dot indexing is not supported for variables of this type.
A fatal error occurred when accessing the coverage tool: cvi.TopModelCov.modelPause
  3 个评论
Ashok Khera
Ashok Khera 2024-5-20
Yes, same happening here.
Error : Dot indexing is not supported for variables of this type
When try to open for Coverage.
After Harness closed, tried again and it works, like a charm.

请先登录,再进行评论。

回答(2 个)

Satwik
Satwik 2024-8-30
Hi,
Based on the error message, here are some potential causes and suggested solutions to address the "Dot indexing is not supported for variables of this type" error when trying to open the aggregated coverage report in Simulink Test Manager:
1. Turn off Signal Range Recording:
  • Navigate to 'Analysis -> Coverage Settings'.
  • Uncheck the option for 'Signal Range' in the Coverage metrics.
2. Ensure Coverage for Model References:
  • If your model includes Model Reference blocks, ensure that coverage is enabled for the top model.
  • Go to the Coverage Settings for the top model and ensure 'Coverage for this model' is checked.
3. Disable Model Coloring in Stateflow:
  • If your model uses Stateflow, turn off 'Model Coloring'.
  • In the Coverage Settings dialog, go to the Results tab and uncheck 'Display coverage results using model coloring'.
4. Turn off Auto-scaling for Fixed Point and Stateflow:
  • If your model includes both Fixed Point and Stateflow, disable Auto-scaling.
  • Navigate to 'Analysis -> Fixed-Point Tool'.
  • For each Stateflow chart, ensure that the Fixed-point instrumentation mode is set to something other than 'Minimums, maximums and overflows'.
  • This can also be checked via the command line with: 'get_param(gcs, 'MinMaxOverflowLogging')'.

Ashok Khera
Ashok Khera 2024-8-30
Yes, same happening here.
Error : Dot indexing is not supported for variables of this type
When try to open for Coverage.
After Harness closed, tried again and it works, like a charm. [ Looks like a bug, but issue seems to be open harness ]

类别

Help CenterFile Exchange 中查找有关 Outputs 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by