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.

Model Reference

Configure model reference settings for the S-function block

S-Function Callback Methods

mdlInitializeSizes Specify the number of inputs, outputs, states, parameters, and other characteristics of the C MEX S-function
mdlStart Initialize the state vectors of this C MEX S-function
mdlProcessParameters Process the C MEX S-function's parameters
mdlSetWorkWidths Specify the sizes of the work vectors and create the run-time parameters required by this C MEX S-function

SimStruct Functions

ssRTWGenIsModelReferenceRTWTarget Determine if the model reference Simulink Coder target is generating
ssRTWGenIsModelReferenceSimTarget Determine if the model reference simulation target is generating
ssSetModelReferenceNormalModeSupport Specify if S-function can be used in referenced model simulating in normal mode
ssSetModelReferenceSampleTimeDefaultInheritance Specify that a referenced model containing this S-function can inherit its sample time from its parent model
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
ssSetModelReferenceSampleTimeInheritanceRule Specify whether use of this S-function in a referenced model prevents the referenced model from inheriting its sample time from its parent model

Topics

S-Function Callback Methods

Description of S-function callback methods

S-Function SimStruct Functions

Overview of SimStruct macros and functions.

Was this topic helpful?