|
|
|
| R2012a Documentation → Simulink Verification and Validation | |
Learn more about Simulink Verification and Validation |
|
| Contents | Index |
[min, max] = sigrangeinfo(cvdo, object)
[min, max] = sigrangeinfo(cvdo, object, portID)
[min, max] = sigrangeinfo(cvdo, object) returns the minimum and maximum signal values output by the model component object within the cvdata object cvdo.
[min, max] = sigrangeinfo(cvdo, object, portID) returns the minimum and maximum signal values associated with the output port portID of the Simulink block object.
max |
Maximum signal value output by the model component object within the cvdata object, cvdo. If object outputs a vector, min and max are also vectors. |
min |
Minimum signal value output by the model component object within the cvdata object, cvdo. If object outputs a vector, min and max are also vectors. |
To collect signal range coverage for a model, using the GUI:
Open the model for which you want signal range coverage.
In the Model Editor, select Tools > Coverage Settings.
On the Coverage tab, under Coverage Metrics, select Signal Range Coverage.
Open the Results and Report tabs and specify the type of output that you need.
Click OK.
Simulate the model and view the results.
Collect signal range data for the Product block in the slvnvdemo_cv_small_controller model:
mdl = 'slvnvdemo_cv_small_controller'; open_system(mdl) testObj = cvtest(mdl) %Create test spec object testObj.settings.sigrange = 1; %Enable signal range coverage data = cvsim(testObj) %Simulate the model blk_handle = get_param([mdl, '/Product'], 'Handle'); [minVal, maxVal] = sigrangeinfo(data, blk_handle) %Get signal range data
complexityinfo | conditioninfo | cvsim | decisioninfo | getCoverageInfo | mcdcinfo | sigsizeinfo | tableinfo

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |