Clear Filters
Clear Filters

Can a simulink model or referenced subsystem be run in accelerator mode while the whole system runs in normal mode?

18 views (last 30 days)
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!

Answers (1)

Vidip Jain
Vidip Jain on 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:
  1. 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.
  2. 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.
  3. Configuration for Accelerator Mode: In the block parameters dialog, go to the "Simulation mode" and change it to accelerator mode.
  4. 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.
These steps allow you to control the simulation mode for specific parts of your model independently from the overall system's simulation mode.

Categories

Find more on Component-Based Modeling in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!