La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Créer des S-functions C/C++
Écrire des S-functions avec du code C ou C++
Vous pouvez créer des S-functions C/C++ à partir de zéro ou en utilisant S-Function Builder ou Legacy Code Tool. Chacune de ces approches implique un compromis entre la facilité d'écriture et les fonctionnalités supportées par la S-function.
Blocs
S-Function | Include S-function in model |
S-Function Builder | Integrate C or C++ code to create S-functions |
Rubriques
À propos des S-functions C/C++
- Create and Implement a Basic C MEX S-Function
Construct the code to create an S-function. - Simulink Engine Interaction with C S-Functions
Learn how the Simulink® engine interacts with a C S-function to create and debug your own C S-functions. - S-Function Callback Methods
Implement S-function callback methods. - S-Function SimStruct Functions
Access Simulink data structure through SimStruct macros and functions.
Créer des S-functions C
- Templates for C S-Functions
Use code templates as starting points for writing your own C S-functions. - C MEX S-Function Examples
Model systems through C MEX S-function examples. - S-Function Examples
Create various types of S-functions and S-function features. - MATLAB Data in C S-Functions
PerformmxArray
manipulation in C S-functions. - Convert Level-1 C MEX S-Functions
Convert S-functions written for earlier Simulink releases to work with the current version.
Créer des S-functions C++
- Create C++ Source File
Create a C++ S-function from a C S-function. - Make C++ Objects Persistent
Create C++ objects that persist across invocations of the S-function. - Build C++ S-Functions
Build a C++ S-function.