Personalizar System objects para Simulink
Personalice System object™ para usarlo en un bloque MATLAB System
El bloque MATLAB System permite utilizar un System object definido en MATLAB® como bloque en Simulink®. Para controlar el aspecto o la salida del bloque o para habilitar el uso del System object en un subsistema For Each, utilice los métodos de implementación proporcionados para personalizar su System object. Para obtener más información sobre cómo definir un System object, consulte Define Basic System Objects o System objects.
Métodos
Clases
Temas
Visión general
- Define System Object for Use in Simulink
Develop MATLAB System block and interactively preview block dialog box. - System Design in Simulink Using System Objects
Design systems in Simulink using System objects.
Aspecto del bloque
- Customize MATLAB System Icon and Dialog Box Using Mask Editor
Customize MATLAB System block appearance using Mask Editor graphical user interface.
Entrada y salida
- Set Model Reference Discrete Sample Time Inheritance
Disallow model reference discrete sample time inheritance for a System object. - Use Global Variables in System Objects
Define global variables for use in System objects. - Specify Output
If Simulink cannot infer the System object output characteristics, add methods to specify the size, data type, complexity, or discrete state output.
Casos prácticos especiales
- Use Update and Output for Nondirect Feedthrough
Implement nondirect feedthrough for a System object using theupdateImpl
,outputImpl
, andisInputDirectFeedthroughImpl
methods. - Enable For Each Subsystem Support
Enable For Each subsystem support by using a System object in a Simulink For Each subsystem. - Specify Sample Time for MATLAB System Block System Objects
This example shows how to control the sample time of the MATLAB System block using System object™ methods.