Running Simulink in rapid acceleration mode
9 次查看(过去 30 天)
显示 更早的评论
Hi. I am trying to run a simulink model in rapid accelerator mode without any success. It says the rapid accelerator target for model is successfully built but it still returns an error. The simulink model uses a number of S-Functions and called from a matlab script using the 'sim' function. Here is the error I get:
### Building the rapid accelerator target for model: R_MOD
### Successfully built the rapid accelerator target for model: R_MOD
Error using rapid_accel_target_utils
Error occurred while simulating the model 'R_MOD' in rapid accelerator mode. Rerun the simulation in normal mode to
diagnose this error.
Error in rapid_accel_target_utils
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
Please any idea(s) on how I can progress?
3 个评论
Ondrej Wolf
2020-10-16
Hi,
I have found the same issue. Model with mex function works perfectly for normal, accelerator and rapid accelerator mode. But if I call the model programmatically from Matlab like:
sim('mdl.slx', 'SimulationMode','rapid');
Then I get the error:
Error occurred while simulating the model 'mdl' in rapid accelerator mode. Rerun the simulation in normal mode to diagnose this error.
So again, when I click on green arrow (Run) in simulink it works fine in rapid accelerator mode, when I call it programmatically as above, it failed.
I have no idea what could be possibly wrong :/
回答(1 个)
Abhas
2024-11-29
I encountered a similar issue with Rapid Accelerator mode and upon doing some research I found the following bug reports on the same:
- https://www.mathworks.com/support/bugreports/3061276?s_tid=srchtitle_support_results_2_fails%2520Rapid%2520Accelerator%2520Simulation%2520mode.
- https://www.mathworks.com/support/bugreports/2002452?s_tid=srchtitle_support_results_30_fails%20Rapid%20Accelerator%20Simulation%20mode
Updating my MATLAB version resolved the problem for me, and you might find success by trying the same.
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 LEGO MINDSTORMS EV3 Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!