User`s guide
Programming via LAN 5
Agilent VISA User’s Guide 123
Addressing a Session Using the TCPIP Interface Type
This sample shows one way to open a device session with a GPIB
device at primary address 23 on a remote PC that is running a LAN
server. The hostname of the remote PC is myMachine. See Chapter 3,
“Programming with VISA”, for more information on addressing device
sessions.
ViSession defaultRM, vi;.
.
viOpenDefaultRM(&defaultRM);
viOpen(defaultRM,
"TCPIP0::myMachine::gpib0,23::INSTR", VI_NULL,
VI_NULL, &vi);
.
.
viClose(vi);
TCPIP0::myMachine::usb0[2391::1031::SN_00123
::0]::INSTR
A USB device with:
Manufacture ID = 2391
Model Code = 1031
Serial Number = 'SN_00123'
USBTMC Intfc # = 0
connected to a LAN server at hostname myMachine.
This device must use SICL-LAN protocol since USB devices are
not supported by the VXI-11 protocol.
Table 28 Example TCPIP Resource Strings
String Description
NOTE
A LAN session to a remote interface provides the same VISA function
support as if the interface were local, except that VXI-specific functions
are not supported over LAN.