How to add a System Target file for Simulink compiler?

11 Ansichten (letzte 30 Tage)
Codrut Dan
Codrut Dan am 11 Dez. 2015
Beantwortet: Hitesh am 24 Dez. 2024 um 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

Antworten (1)

Hitesh
Hitesh am 24 Dez. 2024 um 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.

Kategorien

Mehr zu Simulink Compiler finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by