이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
TCP/IP 인터페이스
TCP(전송 제어 프로토콜)는 인터넷 프로토콜(IP) 위에 있는 전송 프로토콜이며 가장 많이 사용되는 네트워킹 프로토콜 중 하나입니다. Instrument Control Toolbox™는 TCP/IP 통신을 지원하며 클라이언트와 서버를 만드는 기능도 포함합니다. TCP/IP 클라이언트 지원을 통해 네트워크 소켓 통신을 사용하여 MATLAB®에서 원격 호스트에 연결하고 이진 및 ASCII 데이터를 읽고 쓸 수 있습니다. TCP/IP 서버 지원을 사용하면 MATLAB와 단일 클라이언트 간 통신을 위한 네트워크 소켓을 만들 수 있습니다.
tcpclient
를 사용하여 서버나 하드웨어에 연결하고 읽기 및 쓰기 작업을 수행하는 TCP/IP 클라이언트를 만듭니다. tcpserver
를 사용하여 TCP/IP 서버를 만듭니다.
함수
앱
TCP/IP 탐색기 | Connect to and communicate with TCP/IP server (R2021b 이후) |
블록
TCP/IP Receive | 지정된 원격 컴퓨터에서 TCP/IP 네트워크를 통해 데이터를 수신합니다. |
TCP/IP Send | TCP/IP 네트워크를 통해 지정된 원격 컴퓨터로 데이터를 보냅니다. |
도움말 항목
TCP/IP 통신
- TCP/IP Communication Overview
Use network socket communication to connect to remote hosts from MATLAB for reading and writing data over TCP/IP. - TCP/IP and UDP Comparison
Compare the TCP/IP and UDP protocols to determine which to use.
TCP/IP 클라이언트
- Create TCP/IP Client and Configure Settings
Connect to remote hosts or hardware from MATLAB for reading and writing data over TCP/IP. - Write and Read Data over TCP/IP Interface
Write and read data to and from the remote host connected to thetcpclient
object. - Use Callbacks for TCP/IP Communication
Enhance TCP/IP communication by executing a callback function when a specified event occurs. - 코드를 tcpclient 인터페이스로 전환하기
tcpip
대신tcpclient
를 사용하여 TCP/IP 클라이언트 연결을 생성합니다.
TCP/IP 서버
- TCP/IP 서버 소켓을 사용하여 통신
클라이언트와 MATLAB 간 또는 두 개의 MATLAB 인스턴스 간에 통신합니다. - Transition Your Code to tcpserver Interface
Create TCP/IP server connections usingtcpserver
instead oftcpip
.
TCP/IP 익스플로러 앱
- Configure Connection in TCP/IP Explorer
Specify the server to connect to in the TCP/IP Explorer app.
문제 해결
Troubleshooting TCP/IP Client Interface
Troubleshoot the TCP/IP client interface.
Resolve TCP/IP Client Connection Errors
Troubleshoot creating a TCP/IP client.
TCP/IP 클라이언트 경고 해결: 데이터를 읽을 수 없습니다.
데이터를 수신하지 못하고 'tcpclient'가 데이터를 읽을 수 없습니다라는 경고 메시지가 나타날 때 문제를 해결하십시오.
Troubleshooting TCP/IP Server Interface
Troubleshoot the TCP/IP server interface.
TCP/IP 서버 생성 시 발생하는 문제를 해결합니다.
Resolve TCP/IP Server Warning: Unable to Read Any Data
Troubleshoot when you receive some data and you get the warning message: 'tcpserver' unable to read any data.
Resolve TCP/IP Server Warning: Unable to Read All Data
Troubleshoot when you receive some data and you get the warning message: 'tcpserver' unable to read all requested data.