User`s guide

82
Programming Your Instruments
Addressing Instruments
By default, the LAN Client supports both protocols by automatically detecting
the protocol the server is using. When a VISA
viOpen or SICL iopen call is
performed, the LAN Client driver first tries to connect using the SICL-LAN
protocol. If that fails, the driver will try to connect using the VXI-11 protocol.
If you want to control the protocol used, you can configure more than one
LAN Client interface and set each interface to a different protocol. The
protocol used will then depend on the interface you are connecting through.
In VISA, the protocol used is determined by the configuration settings and
cannot be changed programatically. In SICL, the programmer can override
the configuration settings by specifying the protocol in the
iopen string.
Example: Using Network Protocols
Some examples using VXI-11 and SICL-LAN protocol follow. Note that SICL
names are case-sensitive.
! iopen("lan[machineName]:gpib0,1") will use the configured
default protocol. If AUTO is configured, SICL-LAN protocol will be
attempted. If that is not supported, VXI-11 protocol will be used.
! iopen("lan;auto[machineName]:gpib0,1") will
automatically select the protocol (SICL-LAN if available and VXI-11
otherwise.)
! iopen("lan;sicl-lan[machineName]:gpib0,1") will use
SICL-LAN protocol.
! iopen("lan;vxi-11[machineName]:gpib0,1") will use
VXI-11 protocol.
! The TCPIP LAN Client also supports TCP/IP socket reads and
writes. To open a socket session, use
iopen("lan,socketNbr[machineName]"). For example,
iopen("lan,7777[machineName]") will open a socket
connection for socket number 7777 on '
machineName'.