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

21 次查看(过去 30 天)
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)

回答(1 个)

Govind KM
Govind KM 2024-9-17,8:44
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!

类别

Help CenterFile Exchange 中查找有关 Simscape 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by