S-function codegeneraton for rtw: error C2065: 'ssGetDataTypeSize_cannot_be_used_in_RTW': undeclared identifier
27 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Karel Viaene
il 30 Gen 2022
Commentato: Karel Viaene
il 4 Feb 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 Commenti
Risposta accettata
Benjamin Thompson
il 4 Feb 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Coder in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!