Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Introduction

You can create custom blocks whose properties and behaviors are defined by M-file functions called M-file S-functions. The Level-2 M-file S-function application programming interface (API) allows you to create blocks that have many of the features and capabilities of Simulink built-in blocks, including:

For information on how to write a Level-2 M-file S-functions, see Writing Level-2 M-File S-Functions.

You can generate code for Level-2 M-file S-functions if they are inlined. See Inlining S-Functions in the Real-Time Workshop Target Language Compiler documentation for more information.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS