How to add a System Target file for Simulink compiler?

조회 수: 7 (최근 30일)
Codrut Dan
Codrut Dan 2015년 12월 11일
답변: Hitesh 2024년 12월 24일
Hi,
i have on my computer installed the 2015b Matlab version (8.6) with additional Simulink (8.6) and Malab Coder (3.0) and Compiler (6.1). I am looking to compile the simulink into a shared .dll library, and I need (I think) the ert.shared.tlc. file.
How can I add/include to the existing compiling capabilities this one as well?
Thanks in advance, Codrut

답변 (1개)

Hitesh
Hitesh 2024년 12월 24일
Kindly, follow the below steps to generate the shared dll library in MATLAB R2015b:
Set up the model for Code Generation:
  • Open your Simulink model.
  • Go to the Simulink model window and click on Simulation > Model Configuration Parameters.
  • In the Configuration Parameters dialog, navigate to Code Generation.
Select the System Target File:
  • Under the Code Generation pane, set the System target file to ert_shrlib.tlc. This target file is specifically for generating shared libraries (DLLs).
  • If ert_shrlib.tlc is not available, it might indicate that Embedded Coder is not properly installed or configured.
Configure Additional Code Generation Settings:
  • Ensure that the Toolchain is set to a compatible compiler. You might need to install a supported C/C++ compiler if it is not already installed.
Generate Code:
  • With the model configured, you need to generate the code by clicking Build in the Configuration Parameters dialog.
Verify the Output:
  • After the build process completes, you will be able find the generated DLL in the slprj directory within your current working directory.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by