ssSetModelReferenceSampleTimeDisallowInheritance - Specify that the use of this S-function in a submodel prevents the submodel from inheriting its sample time from its parent model
Syntax
void ssSetModelReferenceSampleTimeDisallowInheritance(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 cannot inherit their
sample times from their parent model. You should only use this macro
if your S-function inherits its sample time and its output depends
on the value of the inherited sample time. See Specifying Model Reference Sample Time Inheritance for more
information.
Languages
C, C++
Example
See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_frmad.c used
in sfcndemo_frame.mdl for
an example that uses this function. Running this model requires a Signal Processing Blockset license.
See Also
ssSetModelReferenceSampleTimeDefaultInheritance, ssSetModelReferenceSampleTimeInheritanceRule
 | ssSetModelReferenceSampleTimeDefaultInheritance | | ssSetModelReferenceSampleTimeInheritanceRule |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit