S-function codegeneraton for rtw: error C2065: 'ssGetDataTypeSize_cannot_be_used_in_RTW': undeclared identifier
27 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Karel Viaene
el 30 de En. de 2022
Comentada: Karel Viaene
el 4 de Feb. de 2022
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
5 comentarios
Respuesta aceptada
Benjamin Thompson
el 4 de Feb. de 2022
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 comentarios
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!