Grundlagen der Blockerstellung
Simulink ermöglicht es Ihnen, die integrierten Modellierungsfunktionen zu erweitern, indem Sie vorhandenen Code integrieren und eigene Blöcke erstellen.
Vorhandener Code kann jeder Code sein, der Funktionen bietet, die nicht über Simulink-Bibliotheks-Blöcke verfügbar sind. Sie können MATLAB®, C/C++ und Fortran-Code integrieren. Außerdem können Sie auch System object™ integrieren.
Erstellen Sie einen neuen Simulink-Block für Ihre Anforderungen, wenn die integrierte Bibliothek keinen geeigneten Block bietet. Sie können neue Funktionen mithilfe einer MATLAB-Funktion anstatt eines Simulink-Blockdiagramms erstellen.
Blöcke
Function Caller | Call Simulink or exported Stateflow function |
Level-2 MATLAB S-Function | Use Level-2 MATLAB S-function in model |
MATLAB Function | Include MATLAB code in Simulink models |
MATLAB System | Include System object in model |
S-Function | Include S-function in model |
S-Function Builder | Integrate C or C++ code to create S-functions |
Simulink Function | Graphically define a function with Simulink blocks |
Fcn | Apply specified expression to input |
Themen
- Types of Custom Blocks
Learn about the capabilities of custom blocks.
- Design and Create a Custom Block
Build a custom block using a Level-2 MATLAB S-function.
- Comparison of Custom Block Functionality
Compare and contrast the features of different custom blocks types.