| Simulink® Verification and Validation™ | ![]() |
[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. See Specifying a Model Object for more information about the object argument. If object outputs a vector, min and max are also vectors.
[min, max] = sigrangeinfo(cvdo, object, portID) returns the minimum and maximum signal values associated with the output port portID of the Simulink block object.
The object argument specifies an object in the Simulink model or Stateflow diagram that received decision coverage. Valid values for object include the following:
| Object Specification | Description |
|---|---|
BlockPath | Full path to a Simulink model or block |
BlockHandle | Handle to a Simulink model or block |
slObj | Handle to a Simulink API object |
sfID | Stateflow ID |
sfObj | Handle to a Stateflow API object |
{BlockPath, sfID} | Cell array with the path to a Stateflow block and the ID of an object contained in that chart |
{BlockPath, sfObj} | Cell array with the path to a Stateflow block and a Stateflow object API handle contained in that chart |
[BlockHandle, sfID] | Array with a Stateflow block handle and the ID of an object contained in that chart |
The following commands open the slvnvdemo_cv_small_controller demo model, create the test specification object testObj, enable signal range coverage for testObj, and execute testObj.
mdl = 'slvnvdemo_cv_small_controller'; open_system(mdl) testObj = cvtest(mdl) testObj.settings.sigrange = 1; data = cvsim(testObj)
Afterward, issue the following commands to retrieve the signal range for the Product block.
blk_handle = get_param([mdl, '/Product'], 'Handle'); [minVal, maxVal] = sigrangeinfo(data, blk_handle)
![]() | rminav | tableinfo | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |