Effacer les filtres
Effacer les filtres

Running Simulink in rapid acceleration mode

12 vues (au cours des 30 derniers jours)
Eyefujirin Ejegi
Eyefujirin Ejegi le 2 Sep 2019
Commenté : Ondrej Wolf le 16 Oct 2020
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 commentaires
Eyefujirin Ejegi
Eyefujirin Ejegi le 3 Sep 2019
Modifié(e) : Eyefujirin Ejegi le 3 Sep 2019
Jonas, the simulation runs perfectly in normal mode as well as accelerator mode. An additional info: rapid_accel_target_utils is a file in the matlab private folder with a .p extension (rapid_accel_target_utils.p)
Ondrej Wolf
Ondrej Wolf le 16 Oct 2020
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 :/

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Acceleration dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by