Borrar filtros
Borrar filtros

External C++ library support for Simulink Realtime

1 visualización (últimos 30 días)
Vishnu Dev Amara
Vishnu Dev Amara el 22 de Jul. de 2019
Comentada: Vishnu Dev Amara el 16 de Ag. de 2019
I am trying to use an external C++ library on a Simulink Realtime Target (Please note : I don't mean Simulink Desktop Realtime or Simulink Realtime Windows target), a NUC PC through S-Function support. I managed to generate an S-function for the C++ library, thereby everything works normal in Simulink Normal Mode. Now when I try to generate code for Simulink Realtime the error states that the code is compiled for C++.
Simulink Coder Fatal : This S-Function generated by the Legacy Code Tool must be only used with the C++ Target Language.
How can I make this S-function compatible for SLRT code generation?

Respuestas (1)

Divya Gaddipati
Divya Gaddipati el 14 de Ag. de 2019
The error is because the C++ standard template library is not compatible with real-time code.
A similar question has been answered by the community which may be of relevance to you:
  1 comentario
Vishnu Dev Amara
Vishnu Dev Amara el 16 de Ag. de 2019
Thanks, for the answer, however I was able to get rid of this error and compile the code for RT target PC by writing a C-style wrapper for the C++ library I am using.

Iniciar sesión para comentar.

Categorías

Más información sobre Troubleshooting in Simulink Real-Time 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!

Translated by