Writing S-Functions Previous page   Next Page

Implementing Block Features


The following sections explain 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.
Processing Frame-Based Signals
How to create an S-function that process frame-based signals.
Handling Errors
How to handle errors in an S-function.
S-Function Examples
Examples of S-functions.


Previous page  Porting Legacy Code Dialog Parameters Next page

© 1994-2005 The MathWorks, Inc.