Direct instrument connection using LAN
If you are connecting directly to a LAN instrument, disable DHCP on your instrument. Otherwise your computer will wait for the DHCP to time out before it gets an IP address from the product. This timeout can take around 2 minutes.
When connecting directly to a LAN instrument rather than through a server, do the following:
- Use a crossover LAN cable. This is different than what you would use to connect to a server.
- Disable DHCP on your instrument.
- If using VISA or VISA-COM, add your instrument to the "HOSTS" file (see LAN FAQ)
Test your connection by opening a DOS window, (Run -> "cmd" -> OK from the START menu of many Windows operating systems) type ping and the IP address of the product. Once you have established communication with the product, use this IP address in the program for an example of instrument control using sockets.
Agilent instruments have standardized on using port 5025 for SCPI socket services. Once a connection is made you simply send the SCPI strings to the instrument and read back responses over the socket connection. All strings must be terminated with a newline character. All responses from the instrument will be terminated with a newline character.have established communication with the product, use this IP address in the program for an example of instrument control using sockets.
For further information, see the Agilent Technologies USB/LAN/GPIB Connectivity Guide.