- Open the Model: Open your Simulink model that contains the referenced model, subsystem reference, or variant subsystem that you want to simulate in accelerator mode.
- Open the Configuration Parameters: Double-click on the block representing the subsystem or model you want to simulate in accelerator mode. This will open its block parameters dialog.
- Configuration for Accelerator Mode: In the block parameters dialog, go to the "Simulation mode" and change it to accelerator mode.
- Run the Overall System: Now, when you simulate the overall system, the referenced model, subsystem reference, or variant subsystem will use accelerator mode, while the rest of the model will use normal mode.
Can a simulink model or referenced subsystem be run in accelerator mode while the whole system runs in normal mode?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
In order to avoid issues with S-Functions and accelerator mode, is ir possible to run a referenced model, subsystem reference or even a varient subsystem in accellerator mode but run the overall system in normal mode. And is it possible to do this the other way round where the subsystem is in normal mode?
If so, what are the steps in order to set a certain model/subsystem into a particular mode?
Thanks!
0 Kommentare
Antworten (1)
Vidip Jain
am 6 Sep. 2023
I understand that you want to run a referenced model, subsystem reference or even a variant subsystem in accelerator mode but run the overall system in normal mode.
In Simulink, you can indeed run a referenced model, subsystem reference, or variant subsystem in accelerator mode while running the overall system in normal mode, and vice versa. Simulink provides this flexibility to optimize simulation performance while keeping other parts of the model in different simulation modes. Here's how you can set a specific model or subsystem into a particular simulation mode:
These steps allow you to control the simulation mode for specific parts of your model independently from the overall system's simulation mode.
Refer to this documentation for more information: https://www.mathworks.com/help/simulink/ug/simulate-model-reference-hierarchies.html
0 Kommentare
Siehe auch
Kategorien
Mehr zu Component-Based Modeling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!