필터 지우기
필터 지우기

regarding .bin file generation

조회 수: 3 (최근 30일)
Sriharsha
Sriharsha 2012년 2월 24일
Hi,
I want to generate a .bin file from a simulink model.
Can any one help me in doing so?

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 2월 24일
I'm not sure what compiler tools are needed to produce the .bin format that you require, but you can generate standalone C/C++ code from your model using Simulink Coder and then use one of two techniques:
  1. If this only needs to be done for one model, manually grab all the header, source and library files needed for standalone compilation using the packNGo utility. You can them manually compile the code in whatever IDE you chose to produce the required binary format.
  2. If you need to automate the process for multiple models, you may need to customize the code-generation of build process. If your binary is only meant for execution on the same platform as where the code was generation from the model, you probably need minimal modification of the generated code, so you can customize the build rules used by Simulink Coder to have it generate a .bin instead. See Customizing Template Makefiles and select the customized TMF on the Code Generation pane of the Configuration Parameters window of the model before you generate code.
Also, I recommend that you first try #1 before attempting #2, so that you get a good idea of what needs to be automated.

카테고리

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