Why do I get a build error when generating code from an S-Function block created from a Subsystem containing Simscape and SimDriveline blocks?
显示 更早的评论
I am working on a Simulink model which has an S-Function block that was built from a subsystem with SimDriveline blocks. This was done by right-clicking the subsystem and selecting 'Code Generation -> Generate S-Function'.
This S-Function block runs fine when simulating the model. When I try to generate code from this model, though, I get the following error:
Missing file drive_std.h: No such file or directory.
I tried including this header file in the Configuration Parameters, but this only led to other missing files.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!