- 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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Vidip Jain
il 6 Set 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 Commenti
Vedere anche
Categorie
Scopri di più su Component-Based Modeling in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!