
36
Agilent VISA User’s Guide
3
Programming with VISA
Example: Opening a Session
This sample shows one way to open a
VISA session with the GPIB device at primary address 23.
ViSession defaultRM, vi;
.
.
viOpenDefaultRM(&defaultRM);
viOpen(defaultRM, "GPIB0::23::INSTR", VI_NULL,
VI_NULL,&vi);
.
.
viClose(vi);
viClose(defaultRM);
GPIB2::INTFC
Interface or raw resource for GPIB
interface 2.
VXI::1::BACKPLANE
Mainframe resource for chassis 1 on the
default VXI system, which is interface 0.
GPIB-VXI2:: BACKPLANE
Mainframe resource for default chassis on
GPIB-VXI interface 2.
GPIB1::SERVANT
Servant/device-side resource for GPIB
interface 1.
VXI0::SERVANT
Servant/device-side resource for VXI
interface 0.
TCPIP0::1.2.3.4::999::SOCK
ET
Raw TCPIP access to port 999 at the
specified address.
TCPIP::devicename@compa
ny.
com::INSTR
TCPIP device using VXI-11 located at the
specified address. This uses the default
LAN Device Name of
inst0
.
USB::0x1234::125::A22-5::I
NSTR
USB Test & Measurement class device
with manufacturer ID 0x1234, model code
125, and serial number A22-5. This uses
the device's first available USBTMC
interface, which is usually numbered 0.
Table 8
Examples of Valid VISA Addresses (continued)
Содержание 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 ...