User`s guide
Programming with VISA 3
Agilent VISA User’s Guide 39
Sample: Opening a Session
This sample shows one way to open a VISA session with the
GPIB device at primary address 23.
ViSession defaultRM, vi;
.
.
GPIB::1::0::INSTR A GPIB device at primary address 1 and
secondary address 0 in GPIB interface 0.
ASRL1::INSTR A serial device located on port 1.
VXI::MEMACC Board-level register access to the VXI
interface.
GPIB-VXI1::MEMACC Board-level register access to GPIB-VXI
interface number 1.
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::SOCKET Raw TCPIP access to port 999 at the specified
address.
TCPIP::devicename@company.
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::INSTR 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