How do I send data between two computers using the TCPIP function from the Instrument Control Toolbox?
3 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2009-6-27
编辑: MathWorks Support Team
2017-5-30
I am using the Instrument Control Toolbox, and I would like to communicate between two computers using the Transmission Control Protocol (TCPIP). I would like to know how I can do this.
采纳的回答
MathWorks Support Team
2017-5-30
The ability to communicate between two computers having only MATLAB and the Instrument Control Toolbox installed is not possible.This is due to the nature of the TCPIP protocol.
The TCPIP protocol is one of a strict client/server relationship. In order to use the TCPIP function of the Instrument Control Toolbox, one of the computers must be running some sort of a server application (e.g., a web server or FTP server) that the Instrument Control Toolbox can connect to and act as a client.
For an example of this, refer to the "Communicating with a Remote Host" example in the Instrument Control Toolbox documentation.
If you do not have a server application available, you can communicate between two computers using the User Datagram Protocol (UDP). For more information, click below on the link to related solution 1-OUCYT or see the "Communicating Between Two Hosts" example in the Instrument Control Toolbox documentation.
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!