PowerGUI and Rapid Accelerator: A new block names [...] cannot be added

3 views (last 30 days)
I built an electrical simulation in Simulink using Simscape Specialized Technology with fixed-step simulations. The powergui block is in the main system. When I want to run the simulation in Rapid Accelerator mode, it compiles successfully with MSVC++. At the stage "Connect to Rapid Accelerator Process and Simulate" it outputs:
A new block named 'MainSimulation/powergui/EquivalentModel19' cannot be added
How can I get past that and/or further understand the problem?
(The ultimate goal is to deploy this as a Desktop app, so Rapid Accelerator mode is required)

Answers (1)

Govind KM
Govind KM on 17 Sep 2024
Hi Marten,
I was getting a similar error at the "Connect to Rapid Accelerator Process and Simulate" stage, when simulating my model containing multiple “powergui” blocks in Rapid Accelerator mode. A workaround for me was to simulate the model from the command line using the “sim” function:
mdl = "testModel"; %Replace "testModel" with the name of the required model
open_system(mdl);
%Run simulation in rapid accelerator mode
out = sim(mdl,"SimulationMode","rapid-accelerator");
For more details on the "sim" function, please refer to the documentation provided below:
This issue seems to have been fixed in R2024b, so I would also suggest upgrading to the same.
Hope this helps!

Categories

Find more on Simscape in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!