For Simulink block "Lookup with Akima spline Interpolation" code generation missing header files

9 次查看(过去 30 天)
Generated code for block "Lookup with Akima spline Interpolation" wont generate following header file. Specially when "Shared folder" option is selected for Shared code placement.
include "rtsplntypes.h"
Example model attached
Cubic Spline interfpolation is selected as Algorithm.

采纳的回答

Jing Shen
Jing Shen 2024-1-30
Thanks for reporting this!
Indeed the file should be put under "codeGenFolder/slprj/target/_sharedutils" when "Shared code placement" is set to "Shared location" as we documented in https://www.mathworks.com/help/rtw/ref/sharedcodeplacement.html
We will look into it.
Meanwhile, the missing header "rtsplntypes.h" can be found under the following folder
MATLABROOT/rtw/c/src
So as a workaround, you can copy "rtsplntypes.h" to your local project folder to compile the generated code without MATLAB.
Hope this help~

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by