Writing S-Functions    

Chapter 10
SimStruct 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