wasomix
Electrical
- Jul 14, 2011
- 10
Hello,
I try to simulate two S-function blocks. Each of this blocks use the same 2 static libraries. Due to it, when I generate the 2 static libraries with Visual Studio 2010, in the project properties, I set the "Runtime Library" option to "Multi-threaded(/MT)".
Afterwards, I generate the mex file including the 2 static libraries for each S-function and I "build" the Simulink model. Until here everything is fine, but when I try to run the Simulation, Simulink closes matlab and also itself and there is error message.
I do not know if somebody has had already the same problem. I am stuck with this problem for some days and I do not know how to fix it.
Any hint would be really appreciated.
Thank you very much.
Regards, waso.
I try to simulate two S-function blocks. Each of this blocks use the same 2 static libraries. Due to it, when I generate the 2 static libraries with Visual Studio 2010, in the project properties, I set the "Runtime Library" option to "Multi-threaded(/MT)".
Afterwards, I generate the mex file including the 2 static libraries for each S-function and I "build" the Simulink model. Until here everything is fine, but when I try to run the Simulation, Simulink closes matlab and also itself and there is error message.
I do not know if somebody has had already the same problem. I am stuck with this problem for some days and I do not know how to fix it.
Any hint would be really appreciated.
Thank you very much.
Regards, waso.