Real-time data exchange
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have an application that requires two matlab codes to run parallel in real-time and they need to communicate to each other once in a while and exchange small amount of data (e.g. 8 integers). I designed this application using parallel computing toolbox using pmode and communicate using labrecieve but I have to use labbarrier to which blocks one code. Other way I plan is to use TCP/IP between two separate instances of MATLAB.
Is there a better way to handle this situation.
Thanks in advance.
0 comentarios
Respuestas (2)
Daniel Shub
el 6 de Mzo. de 2012
On Windows you can control and exchange data from one MATLAB session to another with activex.
0 comentarios
Titus Edelhofer
el 6 de Mzo. de 2012
I guess you could use memmapfile in both MATLAB instances to use a (memory mapped) file for exchanging data. Since labbarrier/labreceive is not appropriate as you said, you are not 100% relying on exact time points of data exchange in the code.
Titus
0 comentarios
Ver también
Categorías
Más información sobre ActiveX en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!