S-function codegeneraton for rtw: error C2065: 'ssGetDataTypeSize_cannot_be_used_in_RTW': undeclared identifier
10 次查看(过去 30 天)
显示 更早的评论
Hello,
I would like to use this function in an s-function to determine the memory size in bytes of a custom datatype.
// Retrieve the size in bytes of the datatype at the input port
int_T size = ssGetDataTypeSize(S,dtype);
This works fine in simulation, but when generating code for my target, I receive the following error:
error C2065: 'ssGetDataTypeSize_cannot_be_used_in_RTW': undeclared identifier
So probably this is not supported?
This is the only function preventing me to deploy my code on my realtime target.When hardcoding the size, codegeneration and running is succesfull. Therefore I would like to ask if there is an alternative to retrieve the memory size.
Kind regards,
Brecht
采纳的回答
Benjamin Thompson
2022-2-4
See this documentation for more information on the Target Language Compiler and some tutorials with instruction on how to use this tool and code TLC:
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!