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

조회 수: 9 (최근 30일)
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.

채택된 답변

Walter Roberson
Walter Roberson 2023년 2월 6일
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
Walter Roberson
Walter Roberson 2023년 2월 7일
You can call upon Java socket methods
https://www.codejava.net/java-se/networking/java-socket-server-examples-tcp-ip
Chetan Thakur
Chetan Thakur 2023년 2월 7일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by