Communicating between 32 bit Simulink and 64 bit Simulink

9 views (last 30 days)
I have a mex32 file which I run on a 32 Bit 2014b Simulink simulation but my actual model which uses the mex32 is on 64 bit 2018b Simulink which cannot be ported to 64 bit due to some reasons. Is it possible to have both the 32 Bit and 64 Bit Simulink opened at the same time and some how connected which will allow the simulation to be connected between both the Simulinks and Signals could flow back and forth between both the Simulinks in real time and syncrhonized? I hope the following picture gives a better view:

Accepted Answer

Abdul Rehman
Abdul Rehman on 9 Oct 2020
Finally found the solution to my problem. Using UDP communication instead of TCP does the trick. The following MATLAB example can be used https://www.mathworks.com/help/instrument/basic-udp-communication.html
By splitting the example into 2 parts one with the receiver and one with the sender, and running them on two different simulinks, in my case, 32 and 64 Bit, I was able to connect, sync and run the simulation as originally wanted.

More Answers (1)

Walter Roberson
Walter Roberson on 7 Oct 2020
Use TCP to communicate between the processes.
  3 Comments
Abdul Rehman
Abdul Rehman on 7 Oct 2020
Yes I followed that tutorial and it worked but only on one Simulink Model as the tutorial does the receiving and sending on the same Model. When split up the sending part to another Simulink model, in this case 2014b 32 Bit then I started receiving this error.

Sign in to comment.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2014b

Community Treasure Hunt

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

Start Hunting!