When I create a new CM4SL project (I used Carmaker 9,10.0.1, 10.2) and use the generic.mdl to launch Carmaker and run a simulation, I can only run the simulation once. The second time I press Start on Carmaker GUI (Or start sim on Simulink), I get this message. Over last year I have had an open ticket with IPG but this remains unresolved. I have tested this on multiple laptops in our organisation and also brand new laptops that do not have our organisation’s firewalls/antivirus installed and have been able to replicated this issue.

I have tried clear mex and all other related mex clearning commands in Matlab. But the libcarmaker4sl.mex cannot be unloaded from Matlab.
Only way to resolve this has been to restart Simulink.
Is anyone else facing this issue?
1 Like
Hello ,Now I have occurred the same question in my project, Could you tell me how did you solved this problem?My software is Carmaker10.2 & Matlab20b,Thank you very much sincerely. Maybe you can send the answer to my personal Email on “yiqing.chen@zf.com”
Hello everyone,
we finally found a solution for this issue. In the registry editor open the following key:
Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
Look for any entries that have the path to a MATLAB executable as name and that have the following value:
$ IgnoreFreeLibrary<libcarmaker4sl.mexw64>
If there is one or more such entry the solution is to simply delete it.
We don’t know where this entry comes from but as the key suggests it might be related to the Microsoft Compatibility Assistant.