最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
S-Function は MATLAB®、C、C++ または Fortran で記述された Simulink® ブロックをコンピューター言語で記述したものです。Simulink エンジンと相互作用する API を使用する外部コードを表すために S-Function を開発できます。コード ジェネレーターでこの S-Function を使用し、コードを生成します。S-Functions and Code Generationから始めます。
Generated S-Function | モデルまたはサブシステムを生成された S-Function コードとして表す |
S-Functions and Code Generation
Use S-functions to extend Simulink support for simulation and code generation.
Build Integrated Code Within the Simulink Environment
Add support files and control model code generation and builds within the Simulink Environment.
Implement your algorithm according to the S-function API by writing a C or C++ MEX S-function.
Write Wrapper S-Function and TLC Files
Create S-functions that serve as wrappers for existing code.
Write Fully Inlined S-Functions
Inline your algorithm in the TLC file for code generation.
Write Fully Inlined S-Functions with mdlRTW Routine
Use the mdlRTW
callback method in an inlined
S-function.
S-Functions for Multirate Multitasking Environments
Explains how to handle rate-grouped tasks in multirate, port-based sample time S-functions.
Accelerate Simulation, Reuse Code, or Protect Intellectual Property by Using S-Function Target
Generate a shared library from a model or subsystem that you can load dynamically into another application.
Import Calls to External Code into Generated Code with Legacy Code Tool
Import calls to external code for utility functions, lookup tables, filters, and device drivers into the Simulink environment for simulation and code generation.
Generate S-Function from Subsystem
Apply Generate S-Function operation to create an S-Function from a subsystem block.