Documentation

Function-Call Subsystems

Implement conditional subsystems using S-function blocks

S-Function Callback Methods

mdlInitializeSampleTimesSpecify the sample rates at which this C MEX S-function operates
mdlOutputsCompute the signals that this block emits
mdlUpdateUpdate a block's states

SimStruct Functions

ssCallSystemWithTidCall the update and outputs methods of a function-call subsystem
ssDisableSystemWithTidDisable a function-call subsystem connected to this S-function block
ssEnableSystemWithTidEnable a function-call subsystem connected to this S-function
ssGetCallSystemNumFcnCallDestinations Get the number of function-call destinations.
ssGetExplicitFCSSCtrlDetermine whether this S-function explicitly enables and disables the function-call subsystems that it invokes
ssSetCallSystemOutputSpecify that an output port is issuing a function call
ssSetExplicitFCSSCtrlSpecify whether this S-function explicitly enables and disables the function-call subsystem that it calls

Examples and How To

Function-Call Subsystems and S-Functions

How to create a function-call subsystem.

Concepts

Using Function-Call Subsystems

Create a subsystem that executes with a function call.

S-Function Callback Methods

Description of S-function callback methods

S-Function SimStruct Functions

Overview of SimStruct macros and functions.

Was this topic helpful?