Anpassung von System objects für Simulink
Anpassen von System object™ für die Verwendung in MATLAB System-Blöcken
Der MATLAB System-Block ermöglicht die Verwendung eines in MATLAB® definierten System object als Block in Simulink®. Verwenden Sie zur Anpassung Ihres System object die bereitgestellten Implementierungsmethoden, um das Aussehen oder die Ausgabe des Blocks zu steuern oder die Verwendung von System objects in einem Subsystem zu ermöglichen. Weitere Informationen zur Definition eines System object finden Sie unter Define Basic System Objects oder System Objects.
Methoden
Klassen
Themen
Überblick
- 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.
Aussehen eines Blocks
- Customize MATLAB System Icon and Dialog Box Using Mask Editor
Customize MATLAB System block appearance using Mask Editor graphical user interface.
Eingabe und Ausgabe
- 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.
Spezielle Anwendungsfälle
- 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.