How can I communicate between two instances of MATLAB on the same computer using UDP?
4 views (last 30 days)
Show older comments
Taylor Hearn
on 18 Sep 2017
Answered: Walter Roberson
on 19 Sep 2017
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 Comments
Accepted Answer
Walter Roberson
on 19 Sep 2017
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 Comments
More Answers (0)
See Also
Categories
Find more on Instrument Control Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!