Create MATLAB S-Functions
Create custom blocks with Level-2 MATLAB® S-functions
MATLAB S-function API enables users to use MATLAB language to create custom blocks with the capability of handling multiple input and output ports as well as signals produced by a Simulink® model, including matrix and frame signals of any data type.
Blocchi
S-Function | Include S-function in model |
Methods
Classi
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 run-time information about block-related data, such as block parameters |
Simulink.BlockPortData | Describe block input or output port |
Simulink.BlockCompDworkData | Provide postcompilation information about block's DWork vector |
Simulink.BlockCompInputPortData | Provide postcompilation information about block input port |
Simulink.BlockCompOutputPortData | Provide postcompilation information about block output port |
Simulink.BlockPreCompInputPortData | Provide precompilation information about block input port |
Simulink.BlockPreCompOutputPortData | Provide precompilation information about block output port |
Argomenti
- 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.