Agilent-Defined VISA Attributes
This topic summarizes the attributes specific to Agilent's VISA implementation. They are defined in the visa.h file distributed with Agilent VISA.
Note: The #define AGVISA_ATTRIBUTES statement must appear before the #include <visa.h> statement if you are using any Agilent-defined attributes.
Note: Attributes are local or global. A local attribute only affects the session specified. A global attribute affects the specified device from any session. Attributes can also be read only (RO) and read/write (RW).
SCPI/TULIP Information
Attribute |
Access Privileges |
Data Type |
Range |
Used by |
Description |
|
RW |
Local |
ViBoolean |
VI_TRUE / VI_FALSE |
all VISA sessions |
Indicates whether a lock-abiding VISA function that has been exclusively locked by another session will:
|
TCPIP Attributes
Attribute |
Access Privileges |
Data Type |
Range |
Used by |
Description |
|
RO
|
Local |
ViUInt32 |
VI_AGPROT_VXI11 VI_AGPROT_SICLLAN VI_AGPROT_HISLIP VI_AGPROT_UNKNOWN (on non-LAN sessions) |
INSTR, INTFC |
The interface protocol being used on this session.
|
|
RO
|
Local |
ViUInt16
|
VI_INTF_GPIB VI_INTF_ASRL VI_INTF_VXI VI_AGINTF_USRDEF VI_AGINTF_LANINST VI_AGINTF_RSIB VI_AGINTF_SOCKET VI_AGINTF_HISLIP VI_INTF_USB |
INSTR, INTFC |
The type of remote interface for this session. Notes:
|
Export Attributes
Attribute |
Access Privileges |
Data Type |
Range |
Used by |
Description |
|
RW |
Global |
ViBoolean |
VI_TRUE / |
All VISA sessions |
Determines whether the resource should be exported and thus be visible to another vendor’s VISA implementation. The default value for this attribute depends on the VISA interface. |
|
RW
|
Local |
ViBoolean |
VI_TRUE / |
DefaultRM sessions only |
When this attribute is VI_TRUE, only those resources whose VI_AGATTR_EXPORT_ENABLED attribute is VI_TRUE will be returned from viFindRsrc() and viParseRsrc(). The default value is VI_FALSE, which means that all resources will be returned regardless of the value of their VI_AGATTR_EXPORT_ENABLED attribute. |
GPIB Attributes
Attribute |
Access Privileges |
Data Type |
Range |
Used by |
Description |
|
RW |
Global |
ViiNT32 |
VI_AG_GPIB_T1DELAY_MIN to VI_AG_GPIB_T1DELAY_MAX (value is in nanoseconds) |
GPIB INTFC resources |
The value is the time of t1 delay in nanoseconds. Note: Most GPIB interfaces support only a small number of t1 delays, so the actual t1 delay value used by the interface could be different than that specified. The actual delay value used may be retrieved by calling viGetAttribute(). |
Miscellaneous Attributes
Attribute |
Access Privileges |
Data Type |
Range |
Used by |
Description |
|
RW |
Local |
ViBoolean |
VI_TRUE / |
All VISA sessions |
This attribute was added in VISA 3.0. The VISA 3.0 spec required that in viMove, the srcIncrement/destIncrement from/to local memory is ignored. This means FIFO moves from/to local memory are disallowed. Agilent's VISA implementation allowed FIFO moves from/to local memory in VISA implementations prior to VISA 3.0 so this represents a change in behavior in VISA 3.0 Setting this attribute to VI_TRUE will revert to the pre-VISA 3.0 behavior and allow FIFO moves from/to local memory. Note: The default behavior can be changed by modifying the registry DWORD value: DefaultAllowLocalSpaceFifo to 1 in: HKLM\SOFTWARE\Agilent\IO Libraries\CurrentVersioin\VisaInfo |
|
RO
|
Global |
ViString |
N/A |
INTFC sessions only |
This attribute was added in Suite 15.1. It returns the serial number of an interface. If the interface does not have a serial number it returns an empty string. Interfaces that don’t support this attribute will return the VI_ERROR_NSUP_ATTR status code. |
|
RO
|
Global |
ViString |
N/A |
INTFC sessions only |
|
|
RO
|
Global |
ViString |
N/A |
INTFC sessions only |
|
|
RO
|
Global |
ViString |
N/A |
INTFC sessions only |
|