Implementazione di blocchi con i System object
Il blocco MATLAB System utilizza un System object per implementare gli algoritmi di MATLAB® in Simulink. Prima di iniziare ad utilizzare un blocco MATLAB System, è necessario disporre di un System object da associare al blocco. Un System object è un tipo speciale di classe di MATLAB, progettato specificamente per l'implementazione e la simulazione di sistemi dinamici. Per informazioni sull’implementazione e l’authoring dei System object, vedere Creazione dei System object.
Blocchi
MATLAB System | Include System object in model |
Argomenti
- Create Custom Blocks Using MATLAB System Block and System objects
Implement your own algorithms using System objects.
- PASSAGGIO 1: Define System Object for Use in Simulink
- PASSAGGIO 2: Customize MATLAB System Block Appearance
- PASSAGGIO 3: Customize MATLAB System Block Dialog Box
- PASSAGGIO 4: Specify Output Characteristics of MATLAB System Block
- PASSAGGIO 5: Specify Sample Time for MATLAB System Block System Objects
- PASSAGGIO 6: Create Moving Average Filter Block with System Object
- Mapping System Object Code to MATLAB System Block Dialog Box
The System object source code controls the appearance of the block dialog box.
- 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 Simulink Functions from MATLAB System Block
Learn to call a Simulink function from a MATLAB System block.
- 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.
Risoluzione dei problemi
Troubleshoot System Objects in Simulink
Use these guidelines to troubleshoot System objects in Simulink.