How to add a System Target file for Simulink compiler?

11 views (last 30 days)
Codrut Dan
Codrut Dan on 11 Dec 2015
Answered: Hitesh on 24 Dec 2024 at 8:11
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

Answers (1)

Hitesh
Hitesh on 24 Dec 2024 at 8:11
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.

Categories

Find more on Simulink Compiler in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!