- 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.
- 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.
- 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.
- With the model configured, you need to generate the code by clicking Build in the Configuration Parameters dialog.
- After the build process completes, you will be able find the generated DLL in the slprj directory within your current working directory.