For Simulink block "Lookup with Akima spline Interpolation" code generation missing header files
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
M N
el 29 de En. de 2024
Comentada: Øystein Buanes
el 16 de Oct. de 2024
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.
0 comentarios
Respuesta aceptada
Jing Shen
el 30 de En. de 2024
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~
2 comentarios
Øystein Buanes
el 16 de Oct. de 2024
This is still an issue with 2023b update 9.
Will there be an update that fix this?
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!