Real-time data exchange
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Daniel Shub
2012년 3월 6일
On Windows you can control and exchange data from one MATLAB session to another with activex.
댓글 수: 0
Titus Edelhofer
2012년 3월 6일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 ActiveX에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!