Personnaliser des System objects pour Simulink
Personnaliser un System object™ pour l'utiliser dans un bloc MATLAB System
Le bloc MATLAB System permet d'utiliser un System object défini dans MATLAB® en tant que bloc dans Simulink®. Pour contrôler l'apparence ou la sortie du bloc ou pour permettre l'utilisation du System object dans un sous-système For Each, suivez les méthodes d'implémentation proposées afin de personnaliser votre System object. Pour plus d'informations sur la définition d'un System object, consultez la rubrique Define Basic System Objects ou System objects.
Méthodes
Classes
Rubriques
Introduction
- 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. - Simulink Engine Interaction with System Object Methods
Follow a process view of the order in which the MATLAB System block invokes System object methods within the context of the Simulink engine. - Considerations for Using System Objects in Simulink
Consider these guidelines when working with variable-size signals, tunable parameters, and For Each subsystems.
Apparence du bloc
- Customize MATLAB System Icon and Dialog Box Using Mask Editor
Customize MATLAB System block appearance using Mask Editor graphical user interface.
Entrée et sortie
- 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. - Add and Implement Propagation Methods
To define output specifications, use propagation methods.
Cas d'utilisation particuliers
- Use System Objects in Feedback Loops
Process nondirect feedthrough data through the System object. - 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.