Simulink covData is missing
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Phil K.
el 27 de Feb. de 2023
Comentada: Robert-Alexandru
el 13 de Feb. de 2024
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1308345/image.png)
This is how it looks like in my command line. The covData field is just missing.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1308350/image.png)
Has anyone experienced this before? I am using Matlab2017b.
BR Phil
2 comentarios
Pat Canny
el 27 de Feb. de 2023
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')
Respuesta aceptada
Zuber
el 16 de Mzo. de 2023
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: -
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1326050/image.png)
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Collect Coverage for Models en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!