| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
void ssSetModelReferenceSampleTimeInheritanceRule(SimStruct *S, int_T rule)
SimStruct representing an S-Function block.
Rule for allowing submodels containing this S-function to inherit their sample times from the parent model.
Use this macro in any callback from mdlInitializeSizes to mdlSetWorkWidths to specify the rule that determines whether submodels containing an S-function can inherit their sample times from their parent model. Use this macro only if your S-function inherits its sample time. If the S-function output is dependent on its inherited sample time, use the DISALLOW_SAMPLE_TIME_INHERITANCE rule to specify that submodels containing the S-function cannot inherit their sample times from their parent model. Otherwise, use the USE_DEFAULT_FOR_DISCRETE_INHERITANCE rule to allow sample time inheritance.
C, C++
See Creating Model Components in the Real-Time Workshop User's Guide for more information and examples that use this function.
ssSetModelReferenceSampleTimeDefaultInheritance, ssSetModelReferenceSampleTimeDisallowInheritance
![]() | ssSetModelReferenceSampleTimeDisallowInheritance | ssSetModeVectorValue | ![]() |

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 |