Cannot run Referenced model in accelerator mode

75 vues (au cours des 30 derniers jours)
Jake Gareau
Jake Gareau le 19 Nov 2024 à 23:18
Réponse apportée : Abhas le 3 Déc 2024 à 5:21
I am unable to run a referenced model in accelerator, I have no issue doing so when the model is opened as the top model but once it is included in another model and individually set to accelerator while the rest of the model is set to normal, then it doesnt work.
Invalid run-time parameter registration in S-function 'sfun_spssw_discc' in model 'MyModel'. An S-function can register run-time parameters only if the S-function is being inlined. To be able to reference the model 'MyModel', the S-function 'sfun_spssw_discc' needs to set the option SS_OPTION_USE_TLC_WITH_ACCELERATOR and it needs to have a TLC file.
I am not intentionally using any S - functions so I am a little unsure what to do with this error message
  2 commentaires
Gayathri
Gayathri le 20 Nov 2024 à 3:19
@Jake Gareau, Can you provide the simulink models so that I can take a look to find the issue.
Jake Gareau
Jake Gareau le 27 Nov 2024 à 20:03
the issue seems to with models containing a 'Power GUI' block. Not sure if this is a simulink limitation or if there is some way around it

Connectez-vous pour commenter.

Réponse acceptée

Abhas
Abhas le 3 Déc 2024 à 5:21
To address this issue, try using "powergui". Navigate to "preferences" and enable the option called "Use TLC file when in Accelerator Simulation Mode and for code generation".
You can refer the below MathWorks documentation links to have a better understanding:
  1. https://www.mathworks.com/help/sps/powersys/ref/powergui.html#mw_081370b9-45b5-4a1f-9710-94f3835bf2cc
  2. https://www.mathworks.com/help/simulink/sfg/ss_option_use_tlc_with_accelerator.html
I hope this helps!

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by