21 Networking
Firewall Configuration
Pitfalls
IP to String
The IP to String function converts an IP network address to a string.
The dot notation?
input indicates whether name
is in dot-notation format. The default is FALSE, which makes LabVIEW try to resolve the name. This can take a long time depending on the specific DNS setup of the computer this function is executed on.
To avoid timeouts, if a resolved name is not required, make sure to wire a true
constant to this function.
TCP TIME-WAIT
Why Do I Get Error 60 When Closing and Opening a TCP Connection on the Same Local Port?
Nagle Algorithm
By default, LabVIEW uses the Nagle algorithm when doing TCP communication.
The Nagle algorithm is one of the basic algorithms of TCP that helps reduce Internet traffic by combining several small packets into a single large one. While this increases the efficiency of sending large messages such as those commonly sent in normal Internet traffic, the algorithm can introduce some latency for situations where small amounts of information are being sent back and forth, such as in instrument handshaking.