
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
N O T E
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.
Содержание E2094S
Страница 6: ...6 Agilent VISA User s Guide ...
Страница 116: ...116 Agilent VISA User s Guide 4 Programming via GPIB and VXI ...
Страница 126: ...126 Agilent VISA User s Guide 5 Programming via LAN ...
Страница 143: ...Glossary Agilent VISA User s Guide 143 Windows notification area See notification area ...
Страница 144: ...144 Agilent VISA User s Guide Glossary ...