Writing S-Functions Previous page   Next Page

Introduction

Simulink allows you to use the Ada programming language to create S-functions. As with S-functions coded in other programming languages, Simulink interacts with an Ada S-function by invoking callback methods that the S-function implements. Each method performs a predefined task, such as computing block outputs, required to simulate the block whose functionality the S-function defines. Creating an Ada S-function thus entails writing Ada implementations of the callback methods required to simulate the S-function and then compiling and linking the callbacks into a library that Simulink can load and invoke during simulation. The following sections explain how to perform these tasks.


Previous page  Creating Ada S-Functions Ada S-Function Source File Format Next page

© 1994-2005 The MathWorks, Inc.