Can older 32-bit mex files be run as S-functions in 64-bit Simulink?

3 views (last 30 days)
I think I know the answer, but I can't find it clearly stated in a forum, and the diagnostic is, "S-Function ' mexw32_file_name' does not exist". The mex file was created with R2012a, and I am running 64-bit R2015a. The source model to rebuild the mex files is not readily available. Thanks.

Accepted Answer

Walter Roberson
Walter Roberson on 31 May 2016
No, that is not possible. It is not possible for 64 bit Windows applications to call 32 bit Windows routines. The closest you could get would be to use TCP (or similar, perhaps shared memory) to have two different programs running and communicating with each other.
  5 Comments
Abdul Rehman
Abdul Rehman on 6 Oct 2020
Thank you. But it wont be possible to apply the same concept in Simulink I suppose where 2 Simulinks run side by side, one is 32 bit and the other is 64 Bit and their signals communicate in real time and synchronized? I hope the following picture gives a better idea.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!