Transmission Control Protocol (TCP) is a transport protocol layered on top of the Internet Protocol (IP) and is one of the most used networking protocols. Instrument Control Toolbox™ support for TCP/IP communication includes the ability to create clients and servers. TCP/IP client support enables you to use network socket communication to connect to remote hosts from MATLAB® for reading and writing both binary and ASCII data. TCP/IP server support enables you to create a network socket for communication between MATLAB and a single client.
|Create TCP/IP client connection with TCP/IP server|
|Set terminator for ASCII string communication with remote host over TCP/IP|
|Set callback function and trigger condition for communication with remote host over TCP/IP|
|Read data from remote host over TCP/IP|
|Read line of ASCII string data from remote host over TCP/IP|
|Read one binblock of data from remote host over TCP/IP|
|Write data to remote host over TCP/IP|
|Write line of ASCII data to remote host over TCP/IP|
|Write one binblock of data to remote host over TCP/IP|
|Write command to remote host over TCP/IP and read response|
|Clear buffers for communication with remote host over TCP/IP|
|(To be removed) Create TCPIP object|
|Start or stop TCP/IP echo server|
|Network name or network address|
|Connect interface object to instrument|
|Disconnect interface object from instrument|
|Read binary data from instrument|
|Write binary data to instrument|
|Read data from instrument, and format as text|
|Write text to instrument|
|Read data asynchronously from instrument|
|Stop asynchronous read and write operations|
|Read binblock data from instrument|
|Write binblock data to instrument|
|Read line of text from instrument and discard terminator|
|Read line of text from instrument and include terminator|
|Write text to instrument, and read data from instrument|
|Read data from instrument, format as text, and parse|
|Remove instrument objects from MATLAB workspace|
|Remove instrument objects from memory|
|Information about available hardware|
|Read instrument objects from memory to MATLAB workspace|
|Find visible and hidden instrument objects|
|Disconnect and delete all instrument objects|
|Remove data from input buffer|
|Remove data from output buffer|
|Display event information when event occurs|
Connect to remote hosts or hardware from MATLAB for reading and writing data over TCP/IP.
Write and read data to and from the remote host connected to the
Enhance TCP/IP communication by executing a callback function when a specified event occurs.
Connect to serial port devices using
tcpclient instead of
Support for Server Sockets is available for a single remote connection. You can use this connection to communicate between a client and MATLAB, or between two instances of MATLAB.
Troubleshoot the TCP/IP interface.
Troubleshoot when you receive no data and you get the warning message: 'tcpclient' unable to read any data.