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.

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

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?