Error when trying to open a new connection with tcpip
이전 댓글 표시
Hello everyone, I am trying to open a new connection in MATLAB using the tcpip command:
connection = tcpip('localhost', 5666);
However, I keep getting this error message: ??? Undefined function or method 'echotcpip' for input arguments of type 'char'.
I am not sure where to go from here. If you could give me any advice that would be great. Thanks, Ellie (useless at MATLAB)
댓글 수: 3
Geoff Hayes
2015년 7월 16일
편집: Geoff Hayes
2015년 7월 16일
Eleanor - which version of MATLAB are you using, and what happens when you type the following in the Command Window
which -all echotcpip
Is the error message being generated from within your call to tcpip? Is there more to the error message that you could paste into your question?
Nitin Rawat
2017년 5월 24일
Geoff Haynes - I'm facing the same problem and while using the command " which -all echotcpip", i got this error "'echotcpip' not found."
Vinod
2017년 5월 25일
'echotcpip' is part of Instrument Control Toolbox. execute the 'ver' command to find out what Toolboxes you have installed and have a license for.
답변 (1개)
Rahul Goel
2015년 7월 20일
Hi Eleanor,
I understand that you are getting an error while opening a new connection using ‘tcpip’.
In addition to Geoff’s suggestion, you can also try turning the tcp echo server “on” before creating a connection object. This can be done as:
>> echotcpip('on', 56666)
where “56666” is the port number you want the tcp echo server to run on. Then an object to the connection can be created:
>> conn = tcpip('localhost', 56666)
provided that the function “echotcpip” is not shadowed in the MATLAB path as suggested by Geoff.
Hope this helps.
카테고리
도움말 센터 및 File Exchange에서 TCP/IP Communication에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!