How to set the System Target File for Simulink code generation?

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

 採用された回答

Hitesh
Hitesh 2024 年 12 月 24 日

0 投票

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.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Compiler についてさらに検索

質問済み:

2015 年 12 月 11 日

編集済み:

2026 年 3 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by