Azzera filtri
Azzera filtri

Generate C testbench by using Simulink Coder

9 visualizzazioni (ultimi 30 giorni)
MDL
MDL il 13 Giu 2024
Risposto: SACHIN KHANDELWAL il 24 Giu 2024 alle 5:36
Hello everyone,
I have a Simulink model, from wich I wanna generate a C code. I already did it by using Simulink Coder.
My question now is: is it possible to generate a C testbench, together with the C code that describes the model, by using Simulink Coder as well? Is it a feature that Simulink Coder has?
Thank you for the answers.

Risposte (1)

SACHIN KHANDELWAL
SACHIN KHANDELWAL il 24 Giu 2024 alle 5:36
Hi @MDL ,
I understand that you're looking to generate a C testbench for your generated C code. I recommend checking out the "Simulink Test" feature available in Simulink.
Additionally, you might find it useful to refer to the MathWorks documentation on how to import and test custom C/C++ code. This documentation provides detailed guidance on setting up and running tests for your code.
Hope this helps!
Thanks,
Sachin

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by