Communicating between 32 bit Simulink and 64 bit Simulink

4 Ansichten (letzte 30 Tage)
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:

Akzeptierte Antwort

Abdul Rehman
Abdul Rehman am 9 Okt. 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.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 7 Okt. 2020
Use TCP to communicate between the processes.
  3 Kommentare
Abdul Rehman
Abdul Rehman am 7 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte


Version

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by