Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssSetModelReferenceSampleTimeDefaultInheritance - Specify that a submodel containing this S-function can inherit its sample time from its parent model

Syntax

void ssSetModelReferenceSampleTimeDefaultInheritance(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Description

Use this macro in any callback from mdlInitializeSizes to mdlSetWorkWidths to specify that submodels containing this S-function can inherit their sample times from their parent model. You should only use this macro if your S-function inherits its sample time, but its output does not depend on the value of the inherited sample time. If the S-function output does depend on the inherited sample time, use ssSetModelReferenceSampleTimeDisallowInheritance.

Languages

C, C++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/stvctf.c used in sfcndemo_stvctf.mdl.

See Also

ssSetModelReferenceSampleTimeDisallowInheritance, ssSetModelReferenceSampleTimeInheritanceRule

  


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