sldvruntest - Simulate model using test case in Simulink Design Verifier data file

Syntax

data = sldvruntest(model, sldvDataFile, testIdx)
data = sldvruntest(model, sldvDataFile)
[data, cvdo] = sldvruntest(model, sldvDataFile, testIdx, true)
[data, cvdo] = sldvruntest(model, sldvDataFile, [], true)
[ data, cvdo ] = sldvruntest(model, sldvDataFile, testIdx, true, outputFormat)

Description

data = sldvruntest(model, sldvDataFile, testIdx) simulates model using input signals associated with a single test case that the Simulink Design Verifier software generated. testIdx specifies the index of the test case that the sldvDataFile MAT-file contains. This function returns data, a structure whose fields contain the simulation results:

data = sldvruntest(model, sldvDataFile) simulates model using all test cases that the MAT-file sldvDataFile contains.

[data, cvdo] = sldvruntest(model, sldvDataFile, testIdx, true) simulates model using the test case that testIdx indexes in the MAT-file sldvDataFile. The Simulink Verification and Validation software collects model coverage information during the simulation, which the function returns in the cvdata object cvdo.

[data, cvdo] = sldvruntest(model, sldvDataFile, [], true) simulates model using all test cases that the MAT-file, sldvDataFile, contains. The Simulink Verification and Validation software collects model coverage information during the simulation, which the function returns in the cvdata object cvdo.

[ data, cvdo ] = sldvruntest(model, sldvDataFile, testIdx, true, outputFormat) stores the output values of the model in Y in the structure data. If you set outputFormat to 'Timeseries' (the default), the output values are stored in the Timeseries format. If you set outputFormat to 'StructureWithTime' and the model's output signals do not include bus signals, the output values are stored in the Structure with time format.

See Also

cvsim, sim

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS