Writing S-Functions    

Chapter 7
Implementing Block Features


The following sections how to use S-function callback methods to implement various block features.

Dialog Parameters
How to process parameters passed via the S-function block's dialog box.
Run-Time Parameters
How to create and use run-time parameters.
Creating Input and Output Ports
How to create input and output ports on a block.
Custom Data Types
How to create custom data types for the values of a block's signals and parameters.
Sample Times
How to specify the rate or rates at which your block operates.
Work Vectors
How to create and use work vectors.
Function-Call Subsystems
How to create a function-call subsystem.
Handling Errors
How to handle errors in an S-function.
S-Function Examples
Examples of S-functions.


  Porting Legacy Code Dialog Parameters