Simulink Coder with a locked S-function

7 visualizaciones (últimos 30 días)
Lindsey Sutton
Lindsey Sutton el 26 de En. de 2022
Respondida: Mark McBroom el 29 de En. de 2022
I have a Simulink model that has an s-function that is locked so I do not have the build files for that function. It is from a third party and I just need to use it for simulation. It is working in my current Simulink model. I only have a .mexw64 file for the function.
Is it possible to still export this with Simulink coder to my own C or C++ external file.
I eventually want to run these blocks in Python.
Please let me know if you have any insight of if this is possible. I am currently getting a BuildInfo.mat error which I don't have.
Thank you so much for any help.

Respuestas (1)

Mark McBroom
Mark McBroom el 29 de En. de 2022
It depends on how the s-function was built. If the s-function was built as an "inlined" s-function, then a TLC file is required to generate code, otherwise a TLC file is not required. If a TLC is required, you will get an error message when you try to generate C/C++ code for a model that contains the s-functionn block indicating that the TLC file is missing.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by