After generating the C code of a Simulink Model using Simulink coder, how to run it without using Matlab or simulink and just using C?

조회 수: 2 (최근 30일)
I recently generated the C code for a simulink model using the build model button in simulink. I know the simulation has not been run, just the model itself has been built to C/C++ code. How do i run this model without using simulink or matlab? Say, a way to run the simulation by executing a particular #.c file?

답변 (1개)

Eshwar
Eshwar 2016년 7월 21일
create a new project in any c compiler you are already familiar with and attach all files (.c and .h) generated from slprj and the other folder in to your compiler's working folder where you have created the project.
simply compile and follow the compilation results in case you are missing some files to attach.
please follow the attached document.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by