Writing S-Functions Previous page   Next Page
ssSetModelReferenceSampleTimeInheritanceRule

Specify whether use of this S-function in a submodel prevents the submodel from inheriting its sample time from its parent model.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

rule
   Rule for allowing submodels containing this S-function to inherit their sample times from the parent model.

Description

Use this macro in any callback from mdlInitializeSizes to mdlSetWorkWidths to specify the rule that determines whether submodels containing this S-function can inherit their sample times from their parent model. If this S-function inherits its sample time and its output depends on the inherited sample time, specify DISALLOW_SAMPLE_TIME_INHERITANCE as the rule. Otherwise, specify USE_DEFAULT_FOR_DISCRETE_INHERITANCE as the rule.

Languages

C, C++


Previous page  ssSetIWorkValue ssSetModeVectorValue Next page

© 1994-2005 The MathWorks, Inc.