Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

sigrangeinfo - Collect signal range coverage information for model object

Syntax

[min, max] = sigrangeinfo(cvdo, object)
[min, max] = sigrangeinfo(cvdo, object, portID)

Description

[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.

Inputs

cvdo

cvdata object

object

An object in the model or Stateflow chart that received decision coverage. Valid values for object include the following:

Object SpecificationDescription

BlockPath

Full path to a model or block

BlockHandle

Handle to a 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 chart and a Stateflow object API handle contained in that chart

[BlockHandle, sfID]

Array with a Stateflow chart handle and the ID of an object contained in that chart

portID

Output port of the block object

Outputs

max

Maximum signal values 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 values output by the model component object within the cvdata object cvdo. If object outputs a vector, min and max are also vectors.

Examples

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 MC/DC coverage
data = cvsim(testObj)                              %Simulate the model
blk_handle = get_param([mdl, '/Product'], 'Handle');
[minVal, maxVal] = sigrangeinfo(data, blk_handle)  %Get signal range data

See Also

conditioninfo | cvsim | decisioninfo | mcdcinfo | tableinfo

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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