Implementierung von Blöcken mit System objects
MATLAB System-Blöcke verwenden ein System object, um MATLAB®-Algorithmen in Simulink zu implementieren. Bevor Sie einen MATLAB System-Block verwenden können, benötigen Sie ein System object, das Sie mit einem Block verknüpfen können. Ein System object ist eine bestimmte Art von MATLAB-Klasse, die speziell für die Implementierung und Simulation von dynamischen Systemen entwickelt wurde. Weitere Informationen zum Implementieren und Erstellen von System objects finden Sie unter Erstellen von System objects.
Blöcke
MATLAB System | Include System object in model |
Themen
- MATLAB System Block
Implement your own algorithms using System objects.
- Implement a MATLAB System Block
Implement a block and assign a System object to it.
- Change Blocks Implemented with System Objects
Implement a block with another System object.
- Specify Sample Time for MATLAB System Block
The sample time of a block is a parameter that indicates when the block produces an output, and eventually updates its internal state.
- Call Simulink Functions from MATLAB System Block
Learn to call a Simulink function from a MATLAB System block.
- Change Block Icon and Port Labels
Change the icon appearance of your block.
- Add and Implement Propagation Methods
To define output specifications, use propagation methods.
- Use System Objects in Feedback Loops
Process nondirect feedthrough data through the System object.
- Share Data with Other Blocks
Share data between MATLAB System and other blocks using the
global
keyword and the Data Store Memory block orSimulink.Signal
object. - Call Python Function Using MATLAB Function and MATLAB System Block
This example shows how to call a Python® function in Simulink® that sorts random numbers using a Python® sorting function and two different blocks: the MATLAB Function block and MATLAB System block.
- Mapping System Object Code to MATLAB System Block Dialog Box
The System object source code controls the appearance of the block dialog box.
- Simulation Modes
You can use a MATLAB System block in Simulink models for simulation via interpreted execution or code generation.
- 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.
- Nonvirtual Buses and MATLAB System Block
Use nonvirtual buses as input and output signals.
- Share Data with Other Blocks
Share data between MATLAB System and other blocks using the
global
keyword and the Data Store Memory block orSimulink.Signal
object. - Considerations for Using System Objects in Simulink
Consider these guidelines when working with variable-size signals, tunable parameters, and For Each subsystems.
Fehlersuche
Troubleshoot System Objects in Simulink
Use these guidelines to troubleshoot System objects in Simulink.