VISA for PXI
Specification
PCI eXtensions for Instrumentation
An Implementation of
VISA for PXI Specification Rev. 1.0 9/25/2003
PXI-3
Revision 1.0
September 25, 2003
© PXI Systems Alliance ii VISA for PXI Specification Rev. 1.0 9/25/2003
IMPORTANT INFORMATION
Copyright
© Copyright 2003 PXI Systems Alliance. All rights reserved.
This document is copyrighted by the PXI Systems Alliance. Permission is granted to reproduce and distribute this
document in its entirety and without modification.
NOTICE
The VISA for PXI Specification is authored and copyrighted by the PXI Systems Alliance. The intent of the PXI
Systems Alliance is for the VISA for PXI Specification to be an open industry standard supported by a wide variety of
vendors and products. Vendors and users who are interested in developing PXI-compatible products or services, as well
as parties who are interested in working with the PXI Systems Alliance to further promote PXI as an open industry
standard, are invited to contact the PXI Systems Alliance for further information.
The PXI Systems Alliance wants to receive your comments on this specification. Visit the PXI Systems Alliance Web
site at
http://www.pxisa.org/ for contact information and to learn more about the PXI Systems Alliance.
The attention of adopters is directed to the possibility that compliance with or adoption of the PXI Systems Alliance
specifications may require use of an invention covered by patent rights. The PXI Systems Alliance shall not be
responsible for identifying patents for which a license may be required by any PXI Systems Alliance specification, or
for conducting legal inquiries into the legal validity or scope of those patents that are brought to its attention. PXI
Systems Alliance specifications are prospective and advisory only. Prospective users are responsible for protecting
themselves against liability for infringement of patents.
The information contained in this document is subject to change without notice. The material in this document details
a PXI Systems Alliance specification in accordance with the license and notices set forth on this page. This document
does not represent a commitment to implement any portion of this specification in any company’s products.
The PXI Systems Alliance makes no warranty of any kind with regard to this material, including, but not limited to,
the implied warranties of merchantability and fitness for a particular purpose. The PXI Systems Alliance shall not be
liable for errors contained herein or for incidental or consequential damages in connection with the furnishing,
performance, or use of this material.
Compliance with this specification does not absolve manufacturers of PXI equipment from the requirements of safety
and regulatory agencies (UL, CSA, FCC, IEC, etc.).
Trademarks
PXI™ is a trademark of the PXI Systems Alliance.
PICMG™ and CompactPCI
®
are trademarks of the PCI Industrial Computation Manufacturers Group.
Product and company names are trademarks or trade names of their respective companies.
© PXI Systems Alliance iii VISA for PXI Specification Rev. 1.0 9/25/2003
VISA for PXI Specification Revision History
This section is an overview of the revision history of the VISA for PXI Specification.
Revision 1.0, September 25, 2003
This is the first public revision of the VISA for PXI Specification.
VISA for PXI Specification Rev. 1.0 9/25/2003 iv www.pxisa.org
Contents
1. Introduction
1.1 Objectives........................................................................................................................................ 1
1.2 Intended Audience and Scope......................................................................................................... 1
1.3 Background and Terminology......................................................................................................... 1
1.4 Applicable Documents .................................................................................................................... 2
1.5 Useful Web Sites............................................................................................................................. 3
2. PXI Extensions to the VISA Library
2.1 Introduction ..................................................................................................................................... 4
2.2 Overview of the VISA Library Specification ................................................................................. 4
2.3 VISA Resource Template ............................................................................................................... 4
2.4 VISA Resource Management.......................................................................................................... 4
2.4.1 Address String Grammar................................................................................................. 4
2.4.2 Search Services ............................................................................................................... 5
2.4.3 Module Registration........................................................................................................6
2.5 VISA Resource Classes................................................................................................................... 6
2.5.1 PXI INSTR Resource ...................................................................................................... 6
2.5.1.1 PXI INSTR Resource Attributes ............................................................... 6
2.5.1.2 PXI INSTR Resource Events..................................................................... 9
2.5.1.3 PXI INSTR Resource Operations.............................................................. 10
2.5.2 PXI MEMACC Resource................................................................................................ 10
2.5.2.1 PXI MEMACC Resource Attributes ......................................................... 10
2.5.2.2 PXI MEMACC Resource Events .............................................................. 10
2.5.2.3 PXI MEMACC Resource Operations........................................................ 10
2.6 VISA Resource Specific Operations............................................................................................... 11
2.6.1 PXI INSTR Resource Operations ................................................................................... 11
2.6.1.1 Basic I/O Services...................................................................................... 11
2.6.1.2 Memory I/O Services................................................................................. 11
2.7 Required Attributes ......................................................................................................................... 11
2.8 Resource Summary Information ..................................................................................................... 13
2.8.1 Summary of Attributes .................................................................................................... 13
2.8.2 Summary of Events ......................................................................................................... 14
2.8.3 Summary of Operations .................................................................................................. 14
3. PXI Extensions to the VISA Implementation Specification for Textual Languages
3.1 Introduction ..................................................................................................................................... 15
3.2 Additional VISA Textual Language Bindings for PXI................................................................... 15
3.2.1 Type Assignments, Operation Prototypes, Completion Codes and Error Codes............ 15
3.2.2 Attribute Values .............................................................................................................. 15
3.2.3 Event Type Values ..........................................................................................................16
3.2.4 Values and Ranges ..........................................................................................................17
3.2.5 Conditional Inclusion of PXI Functionality ................................................................... 18
3.3 Additions to the Implementation files............................................................................................. 18
3.3.1 Additional Contents of the visa.h File............................................................................. 18
3.3.2 Additional Contents of the visa32.bas File ..................................................................... 19
3.3.3 Additional Contents of the ATEasy visa.drv File ........................................................... 21
4. PXI Extensions to the VISA Implementation Specification for the G Language
4.1 Introduction ..................................................................................................................................... 23
4.2 Additional VISA G Language Bindings for PXI ............................................................................ 23
4.2.1 Type Assignments, Operation Prototypes, Completion Codes and Error Codes............ 23
4.2.2 Attribute Values .............................................................................................................. 23
Contents
© PXI Systems Alliance v VISA for PXI Specification Rev. 1.0 9/25/2003
4.2.3 Event Type Values ..........................................................................................................24
4.2.4 Values and Ranges ..........................................................................................................24
Tables
Table 2-1. Address String Grammar.................................................................................................... 4
Table 2-2. Examples of PXI Address Strings...................................................................................... 5
Table 2-3. PXI-Specific INSTR Resource Attributes ......................................................................... 6
Table 2-4. PXI-Specific MEMACC Resource Attributes ................................................................... 10
Table 2-5. PXI-Specific INSTR Resource Attributes ......................................................................... 11
Table 2-6. PXI-Specific MEMACC Resource Attributes ................................................................... 12
Table 3-1. Attribute Values for Supporting PXI ................................................................................. 15
Table 3-2. Event Type Values for Supporting PXI ............................................................................. 16
Table 3-3. Additional Values for Supporting PXI............................................................................... 17
Table 4-1. G Language Binding and Access Privileges ...................................................................... 23
Table 4-2. Event Type Values for Supporting PXI ............................................................................. 24
Table 4-3. Additional Values for Supporting PXI............................................................................... 24
评论1