This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


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


void ssSetModelReferenceSampleTimeDefaultInheritance(SimStruct *S)



SimStruct representing an S-Function block.


Use this macro in any callback from mdlInitializeSizes to mdlSetWorkWidths to specify that referenced models 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.


C, C++


See the S-function stvctf.c used in sfcndemo_stvctf.

Introduced in R2007a

Was this topic helpful?