Can you 'run all' in a signal builder programmatically?

2 visualizaciones (últimos 30 días)
Collin
Collin el 25 de Nov. de 2014
Editada: Arun Kumar Misra el 12 de Dic. de 2018
I have a model reference that I am doing some coverage analysis on. I have a model harness that contains several test cases (signal groups) and the model reference. I know that I can programmatically run individual test cases by making them active and generate coverage reports, however I can't seem to find a way to run all the test cases and generate a combined report. I am essentially looking for a way to use the 'Run All' button in the signal builder window from the command line. I would ideally like to create a report that contains both a summary of the results from each test case simulation run individually and a detailed breakdown of the combined coverage results, however just the combined results can work for me as well. Does anyone know of a way to 'run all' signal groups in a signal builder from the command line? Any insight is greatly appreciated.
Thanks
Collin

Respuestas (2)

Deepak
Deepak el 9 de Nov. de 2017
Hi Collin,
If you are using Simulink Design Verifier product, running all testcases programmatically can be accomplished by using ‘sldvruntest’. This command will also give you an option to only run for a group of selected testcases and generate the coverage report.
The following documentation will provide you more information:
Thanks,
Deepak

Arun Kumar Misra
Arun Kumar Misra el 13 de Abr. de 2018
Editada: Arun Kumar Misra el 12 de Dic. de 2018
here is the solution, may be quite late.
load_system('c_i/Stimuli/Stimuli');
[time, data, signames, groupnames] = signalbuilder('c_i/Stimuli/Stimuli');
for idx =1:size(groupnames,2)
signalbuilder('c_i/Stimuli/Stimuli', 'activegroup', idx);
signalbuilder('c_i/Outputs/References', 'activegroup', idx);
sim('c_i'); %make sure you set simulation mode to SIL, %either
%by command or on the model
end

Categorías

Más información sobre Test Model Components 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!

Translated by