
10
2 Cautions on Communication Program Creation
The TCP/IP communication performs the process so that large data is sent efficiently. Therefore, when small data
such as a command to control the instrument is sent, the send process may not be performed until the size of the send
data reaches a certain level. In this case, the response from the instrument becomes slow. Therefore, when creating a
communication program, perform the following settings to make the response from the instrument faster.
• For Socket Program
Set 1 for TCP_NODELAY of the socket option.
Example: C/C++)
SOCKET sock;
BOOL opt;
•••
opt = 1;
setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char*)&opt, sizeof(BOOL));
• For .Net Framework
Set NoDelay of the TcpClient class to true.
Example: VB)
Dim tcpClient As System.Net.Sockets.TcpClient
•••
tcpClient.NoDelay = True