How can I communicate between two instances of MATLAB on the same computer using UDP?
조회 수: 4 (최근 30일)
이전 댓글 표시
I'm trying to communicate between two instances of MATLAB opened on the same computer using UDP. I opened the second instance of MATLAB using the following code:
!matlab &
I am somewhat familiar with the "udp()" function, but I'm not sure how to declare the remote ports as these seem to change each time I open MATLAB.
Any assistance is greatly appreciated!
댓글 수: 0
채택된 답변
Walter Roberson
2017년 9월 19일
You can ask udp() to use particular local ports so have one of the instances use port 32109 as its local port and have the other use 32108 as its local port and have each specify the other value as the remote port.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!