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!