PowerGUI and Rapid Accelerator: A new block names [...] cannot be added
3 次查看(过去 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:
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)
0 个评论
回答(1 个)
Govind KM
2024-9-17
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!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!