![HP E4401B Programmer'S Manual Download Page 73](http://html.mh-extra.com/html/hp/e4401b/e4401b_programmers-manual_161548073.webp)
Chapter 3
3-9
Programming Examples
C Programming Examples using VTL
Addressing a Session
As seen in the previous section, the rsrcName parameter in the
viOpen
function is used to identify a specific device. This parameter is made up
of the VTL interface name and the device address. The interface name
is determined when you run the VTL Configuration Utility. This name
is usually the interface type followed by a number. The following table
illustrates the format of the rsrcName for the different interface types:
The following describes the parameters used above:
board
This optional parameter is used if you have more than
one interface of the same type. The default value for
board is 0.
VSI logical
address
This is the logical address of the VXI instrument.
primary
address
This is the primary address of the HP-IB device.
secondary
address
This optional parameter is the secondary address of the
HP-IB device. If no secondary address is specified, none
is assumed.
INSTR
This is an optional parameter that indicates that you
are communicating with a resource that is of type
INSTR, meaning instrument.
NOTE
If you want to be compatible with future releases of VTL and VISA, you
must include the INSTR parameter in the syntax.
The following are examples of valid symbolic names:
VXI0::24::INSTR Device at VXI logical address 24 that is of VISA type
INSTR.
VXI2::128
Device at VXI logical address 128, in the third VXI
system (VXI2).
GPIB-VXI0::24 A VXI device at logical address 24. This VXI device is
connected via an HP-IB/VXI command module.
GPIB0::7::0
An HP-IB device at primary address 7 and secondary
address 0 on the HP-IB interface
Interface
Syntax
VXI
VXI [board]::VXI logical address[::INSTR]
HP-IB/VXI
GPIB-VXI [board]::VXI logical address[::INSTR]
HP-IB
GPIB [board]::primary address[::secondary address][::INSTR]
Summary of Contents for E4401B
Page 6: ...vi ...
Page 14: ...xiv Contents ...
Page 64: ...2 34 Chapter2 HP ESA Status Registers Using the Analyzer Status Registers ...
Page 65: ...3 1 3 Programming Examples ...
Page 151: ...4 1 4 Programming Command Cross References ...
Page 286: ...5 132 Chapter5 Language Reference UNIT Subsystem ...
Page 287: ...6 1 6 HP 8590 HP ESA Spectrum Analyzers Programming Conversion Guide ...
Page 292: ...1 HP 8590 HP ESA Spectrum Analyzers Conversion Guide ...
Page 368: ...7 1 7 Error Messages ...
Page 393: ...7 26 Chapter7 Error Messages 201 to 799 Device Specific Errors ...