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
Was this topic helpful?