FMU Model exported from Simulink unable to perform Code Generation for dSPACE benches

9 visualizaciones (últimos 30 días)
Hi Everyone,
I have model developed in Simulink v2022b. Need to share with HIL team who uses Simulink v2019b which is connected to dSPACE bench.
Steps I followed were:
  1. Create standalone FMU in v2022b, which is shared with HIL team.
  2. HIL team is able to run FMU in Simulink v2019b, however, when they try Code generation for dSPACE bench following error occurs
'master/master/MDL/Plant/FMU' does not support code generation.
***Stopped RTI procedure for model: master.
3. Model if shared directly (non FMU version) is able to be used in code generation for dSPACE. (i.e nothing in model is wrong)
Accoding to process, I need to share model in FMU format. How do I resolve this?
Are there any options I need to select which I am missing while I generate FMU?
If I update Simulink version for dSPACE bench or FMU model development will it help?
Regards,
Nikhil Shah

Respuestas (1)

Kautuk Raj
Kautuk Raj el 7 de Mayo de 2025
I was also facing the same issue in MATLAB R2022b.
I recommend updating the HIL model to MATLAB R2022b to ensure compatibility between the imported FMU (created in R2022b) and the code generation and build process within the HIL model.
This solved the issue for me.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by