Simulink coder error - Empty code

3 次查看(过去 30 天)
Dan Gumeni
Dan Gumeni 2022-1-7
Hello. I'm trying to generate the code from a Simulink model, which is using PLECS Blockset as well, to run on an OPAL-RT RTS. The model is running completely fine on its own, however when I try to compile into C code I get the following error:
Error: Simulink Coder Error in block: "two_cell_inside_module/Circuit/ S-Function ", block type "S-Function": Fatal error during code generation: Empty code in Circuit/Phase A converters/CHBA1/MFB1/Sub-cycle average
It seems like this error appears for a number of different blocks in the circuit model. Does anyone know what is causing this problem and how I can fix it? I'll also attach the full model, if someone wants to have a look.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by