La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Implémenter des blocs avec des System objects
Le bloc MATLAB System utilise un System object pour implémenter des algorithmes MATLAB® dans Simulink. Avant d'utiliser un bloc MATLAB System, vous devez disposer d'un System object à associer à ce bloc. Un System object est un type particulier de classe MATLAB spécifiquement conçu pour l'implémentation et la simulation de systèmes dynamiques. Pour plus d'informations sur l'implémentation et la création de System objects, consultez la rubrique Créer des System objects.
Blocs
MATLAB System | Include System object in model |
Rubriques
- Create Custom Blocks Using MATLAB System Block and System objects
Implement your own algorithms using System objects.
- Implement a System object in Simulink Using MATLAB System Block
- Specify Sample Time for MATLAB System Block
- Call Simulink Functions from MATLAB System Block
Learn to call a Simulink function from a MATLAB System block.
- Change Block Icon and Port Labels
- 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 Between MATLAB System Block and 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.
- Interpreted Execution vs. 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.
- Use Nonvirtual Buses with MATLAB System Block
- Share Data Between MATLAB System Block and 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.
Résolution des problèmes
Troubleshoot System Objects in Simulink
Use these guidelines to troubleshoot System objects in Simulink.