Technical data
Chapter 9 147
Programming Examples
Programming in C Using the VISA
Programming Examples
devices. 
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 VISA interface name and the device address. The interface name 
is determined when you run the VISA 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 GPIB device.
secondary
address   This optional parameter is the secondary address of the 
GPIB device. If no secondary address is specified, none 
is assumed.
host
address   The IP address (in dotted decimal notation) or the name 
of the host computer/gateway.
LAN device
name  The assigned name for a LAN device. The default is 
inst().
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 VISA and VISA, 
you must include the INSTR parameter in the syntax.
The following are examples of valid symbolic names:
Interface Syntax
VXI VXI [board]::VXI logical address[::INSTR]
GPIB-VXI GPIB-VXI [board]::VXI logical address[::INSTR]
GPIB GPIB [board]::primary address[::secondary address][::INSTR]
TCPIP TCPIP [board]::host address[::LAN device name]::INSTR










