Documentation

Function-Call Subsystems

Implement conditional subsystems using S-function blocks

S-Function Callback Methods

mdlInitializeSampleTimes Specify the sample rates at which this C MEX S-function operates
mdlOutputs Compute the signals that this block emits
mdlUpdate Update a block's states

SimStruct Functions

ssCallSystemWithTid Call the update and outputs methods of a function-call subsystem
ssDisableSystemWithTid Disable a function-call subsystem connected to this S-function block
ssEnableSystemWithTid Enable a function-call subsystem connected to this S-function
ssGetCallSystemNumFcnCallDestinations Get the number of function-call destinations.
ssGetExplicitFCSSCtrl Determine whether this S-function explicitly enables and disables the function-call subsystems that it invokes
ssSetCallSystemOutput Specify that an output port is issuing a function call
ssSetExplicitFCSSCtrl Specify 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

Create a Function-Call Subsystem

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?