Simulink Rsim executable libmx.dll missing

I want to generate a standalone executable for a Simulink model using MATLAB 2010b 32-bit. My ultimate aim is to have a stanalone executable of a package of M-scripts, GUIs and a simulink model with tunable parameters.
I have tried generating an exe using the Rapid simulation target. It works when I call it from Matlab using
!Modelname.mdl
command. If I run the exe file outside MATLAB, i get the error message
"The program cannot be started as the libmx.dll is missing from the computer."
I have checked and all the required DLLs exist in my system at the path: "C:\Program Files (x86)\MATLAB_Runtime_v7141_r10bSP1\v7141\bin\win32".
Are Rsim executables not meant to be used outside MATLAB? Should I be using the deploytool? I'd appreciate any help.

回答 (1 件)

Ankitha Kollegal Arjun
Ankitha Kollegal Arjun 2017 年 2 月 9 日

0 投票

1. The DLL is located in MATLABROOT/bin/win32. Add this location to the system environmental variable "Path".
2. This error may also indicate that the file "libmx.dll" is missing from your MATLAB installation directory. This can occur if certain antivirus software is installed and it quarantines the file. To resolve the issue, open the antivirus software and restore the quarantined file "libmx.dll".

4 件のコメント

Sandip Kulkarni
Sandip Kulkarni 2019 年 5 月 10 日
The purpose of creating Rsim executable is to allow using the model on many computers without needing Simulink. But, if you are pointing to necessity of a DLL from MATLABROOT, then that purpose is defeated.
Sri Lakshmi
Sri Lakshmi 2020 年 4 月 7 日
I searched my entire antivirus program folder.
i didn't find " libmx.dll" file in that folder.
please help me iam lagging of my final year project
Santi Prats
Santi Prats 2020 年 5 月 4 日
Sri Lakshmi did you find a solution? I have the same problem.
Ryan Rosenbaum
Ryan Rosenbaum 2020 年 6 月 5 日
The DLL is actually in MATLABROOT/bin/win64 for me

サインインしてコメントする。

質問済み:

2017 年 1 月 30 日

コメント済み:

2020 年 6 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by