Erstellen von MATLAB S-Functions
Erstellen Sie benutzerdefinierte Blöcke mit Level-2 MATLAB® S-Functions
Die MATLAB S-Function API ermöglicht es Benutzern, mithilfe der MATLAB-Sprache benutzerdefinierter Blöcke zu erstellen, die mehrere Eingabe- und Ausgabeports sowie durch ein Simulink®-Modell erzeugte Signale verarbeiten können, einschließlich Matrix- und Frame-Signale aller Datentypen.
Blöcke
S-Function | Include S-function in model |
Methoden
Klassen
Simulink.MSFcnRunTimeBlock | Get run-time information about Level-2 MATLAB S-function block |
Simulink.RunTimeBlock | Allow Level-2 MATLAB S-function and other MATLAB programs to get information about block while simulation is running |
Simulink.BlockData | Provide runtime information about block-related data, such as block parameters |
Simulink.BlockPortData | Describe block input or output port |
Simulink.BlockCompDworkData | Provide post-compilation information about block DWork
vector |
Simulink.BlockCompInputPortData | Provide post-compilation information about block input port |
Simulink.BlockCompOutputPortData | Provide post-compilation information about block output port |
Simulink.BlockPreCompInputPortData | Provide precompilation information about block input port |
Simulink.BlockPreCompOutputPortData | Provide precompilation information about block output port |
Themen
- Write Level-2 MATLAB S-Functions
Explains how to create MATLAB S-functions based on the current Level-2 MATLAB S-function application programming interface (API).
- S-Function Examples
Create various types of S-functions and S-function features.