Communicating between 32 bit Simulink and 64 bit Simulink

9 visualizaciones (últimos 30 días)
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:

Respuesta aceptada

Abdul Rehman
Abdul Rehman el 9 de Oct. de 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.

Más respuestas (1)

Walter Roberson
Walter Roberson el 7 de Oct. de 2020
Use TCP to communicate between the processes.
  3 comentarios
Abdul Rehman
Abdul Rehman el 7 de Oct. de 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.

Iniciar sesión para comentar.

Productos


Versión

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by