Documentation

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.

ssSetModelReferenceSampleTimeDisallowInheritance

Specify that the use of this S-function in a referenced model prevents the referenced model 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, in order to specify that referenced models 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 sfun_frmad.c used in sfcndemo_frame for an example that uses this function. Running this model requires a DSP System Toolbox™ license.

Introduced in R2007a

Was this topic helpful?