Communicating between 32 bit Simulink and 64 bit Simulink

9 次查看(过去 30 天)
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:

采纳的回答

Abdul Rehman
Abdul Rehman 2020-10-9
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.

更多回答(1 个)

Walter Roberson
Walter Roberson 2020-10-7
Use TCP to communicate between the processes.
  3 个评论
Abdul Rehman
Abdul Rehman 2020-10-7
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by