Bug: Simulink will not autocode/build models with model-referenced integrator blocks
Mostra commenti meno recenti
MATLAB 2016b
When I attempt to build a Simulink model that contains an integrator block inside of a model reference, for C++ autocoding purposes, the build aborts due to the following error:
The code interface packaging option 'C++ class' cannot be selected for model 'TEST' because it does not combine its output and update functions when generating code for model reference targets
Is there a known fix for this error?
Thanks in advance
EDIT: There is a known bug listed here:
Note: the way this bug report reads, they have not implemented an error message, such as the one I am receiving. However, this is likely the culprit.
I don't understand the 1st workaround. The 2nd workaround works:
set_param(cs, 'CodeInterfacePackaging', 'Nonreusable function')
My attempt at the 3rd workaround does not seem to fix. I uploaded an image of my 3rd workaround for reference.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!