Funzioni definite dall’utente
R2026aPersonalizzare i blocchi funzione, come MATLAB Function, MATLAB System, Simulink Function e Initialize Function
Utilizzare i blocchi della libreria User-Defined Functions per estendere le funzionalità di modellazione di Simulink® tramite la creazione di nuovi tipi di blocchi. È possibile implementare algoritmi a blocchi utilizzando codice MATLAB®, C/C++ e Fortran®.
Blocchi
| C Caller | Integrate C code in Simulink | |
| C Function | Integrate and call external C/C++ code from a Simulink model | |
| Fcn | Applicare l'espressione specificata all'input | |
| Function Caller | Call a Simulink function | |
| Initialize Function | Eseguire il sottosistema all'evento di inizializzazione del modello | |
| Interpreted MATLAB Function | (To be removed) Apply MATLAB function or expression to input | |
| Level-2 MATLAB S-Function | Utilizzare la S-Function di MATLAB di livello 2 nel modello | |
| MATLAB Function | Include MATLAB code in Simulink models | |
| MATLAB System | Include System object in model | |
![]() | Python Code | Integrate native Python code into a Simulink model (Da R2025a) |
| Reinitialize Function | Execute subsystem on model or subsystem reinitialize event (Da R2022a) | |
| Reset Function | Eseguire il sottosistema all'evento di ripristino del modello | |
| S-Function | Includere S-function nel modello | |
| S-Function Builder | Integrare codice C o C++ per creare S-function | |
| Simulink Function | Define a function using Simulink blocks | |
| Terminate Function | Execute subsystem on model terminate event |
Informazioni complementari
- Call Legacy Lookup Table Functions Using C Function Block
- Modify States of a C Function Block Using Persistent Symbols
- Call C++ Class Methods Using C-Style Wrapper Function from C Function Block
- Call C++ Class Methods Directly from a C Function Block
- Common Uses of the Initialize Function Block
- Working with the Reinitialize Function Block
- Initialize, Reset, and Terminate State of Simulink Block
