Writing S-Functions    

Chapter 10
SimStruct Functions


This sections describes SimStruct macros and functions.

Introduction
Overview of SimStruct macros and functions.
SimStruct Macros and Functions Listed by Usage
SimStruct macros and functions listed by usage.
Macro Reference
Descriptions of the SimStruct macros and functions.

Introduction

Simulink provides a set of functions for accessing the fields of an S-function's simulation data structure (SimStruct). S-function callback methods use these functions to store and retrieve information about an S-function.

This reference describes the syntax and usage of each SimStruct function. The descriptions appear alphabetically by name to facilitate location of a particular macro. This section also provides listings of functions by usage to speed location of macros for specific purposes, such as implementing data type support.


  mdlZeroCrossings Language Support