why tcpserver is not part MATLAB ? Why do I need to purchase instrument control toolbox ?

I was surprised to see the basic tcpserver functionality is not accessible in base MATLAB.
What is so special about it, that one needs to purchase toolbox for it.
Is there a way to use tcpserver in matlab without instrument control toolbox.

 Accepted Answer

To be honest, I do not know why Mathworks made this decision. Earlier both tcp server and client were Instrument Control only, but when they rewrote they made tcpclient() available to regular matlab. Considering that functions such as websave() and ftp() and restful services access is part of regular matlab it would not be defendable to say that tcp requires advanced functionality. But I don't understand why tcpserver requires a different toolbox.
The workaround is to look in file exchange for tcpudpip contribution which uses an external library.

3 Comments

I did tried tcpudpip but it fails to install on my version of MATLAB.
So now I am looking for other methods to create tcpserver.
If you know methods other than tcpudpip, please let me know.
You can call upon Java socket methods
https://www.codejava.net/java-se/networking/java-socket-server-examples-tcp-ip
I moved to using python socket method for tcpserver functionality.
Thanks for the reply. I usually avoid calling external interpereters or compiler from matlab. But in this case it helped.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2022b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!