您好,欢迎光临本网站![请登录][注册会员]  
文件名称: NI VISA 通讯用户手册.pdf
  所属分类: C++
  开发工具:
  文件大小: 547kb
  下载次数: 0
  上传时间: 2019-08-18
  提 供 者: u0113*****
 详细说明:NI-VISA Programmer Reference Manual NI-VISA 用户手册Important Information Warranty The media on which you receive National Instruments software are warranted not to fail to execute programmin instructions, due to defects in materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects during the warranty perio National Instruments dues not warrant that the uperation of the sofware shall be uninterrupted or error free A Return Material Authorization(RMA)number must be obtained from the factory and clearly marked on the outside of the package before any equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are covered by warranty National Instruments believes that the information in this manual is accurate. The document has been carefully reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it EXCEPT AS SPECIFIED IIEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED. AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR NEGLIGENCE ON TIIE PART OF NATIONAL INSTRUMENTS SIIALL BE LIMITED TO TIIE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA. PROFITS USE OF PRODUCTS OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF TIIE POSSIBILITY TIIERLOF. This limitation of the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against National Instruments must be brought within one year after the cause of action accrues National Instruments shall not be liable for any delay in performance due to causes beyond its reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or service failures caused by owner's failure to follow the National Instruments installation, operation, or maintenance instructions: owner's modification of the product; owner's abuse, misuse, or negligent acts, and power failure or surges, fire, flood, accident, actions of third parties, or other events outside reasonable control Copyright Under the copyright laws, this publication may not be reproduced or transmitted in any form, electron in part, without or mechanical including photocopying, recording, storing in an information retrieval system, or translating, in whole the prior written consent of National Instruments Corporation Trademarks LabvIEW, NI-4882 NI-VISA NI-VXI and VXlpc are trademarks of National Instruments Corporation Product and company namcs listed arc trademarks or tradc namcs of thcir respective companics WARNING REGARDING MEDICAL AND CLINICAL USE OF NATIONAL INSTRUMENTS PRODUCTS National Instruments products arc not designed with components and testing intended to ensurc a levcl of reliability suitable for use in treatment and diagnosis of humans. Applications of National Instruments products involving medical or clinical treatment can create a potential for accidental injury caused by product failure, or by errors on the part of the uscr or application designer. Any usc or application of National Instruments products for or involving mcdical or clinical treatment must be performed by properly trained and qualified medical personnel, and all traditional medical safeguards, equipment, and procedures that are appropriate in the particular situation to prevent serious injury or death should always continuc to bc used when National Instruments products are bcing uscd. National Instruments products are NOT intended to be a substitute for any form of established process, procedure, or equipment used to monitor or safeguard human health and safety in medical or clinical treatment Table Contents Table of contents About this manual Organization of This manual Conventions used in This manual ······ How to Use This documentation Set Ⅺ1 Related documentation Customer communication Chapter 1 Introduction How to Use This manual 1-1 What You Need to get Started 1-1 Background 1-2 Chapter 2 Introductory Programming Examples Example of Message-Based Communication Example2-1…… 2-2 Example 2-1 Discussion Example of Register-Based Communication 2-4 Example2-2……… Example 2-2 Discussion 2-6 Example of Handling Events 2-7 cuing………… 2-7 Example 2-3 …2-8 Example 2-3 Discussion 2-9 Example of locking.… 2-10 Example 2-4 2.10 Example 2-4 Discussion .2-12 Nationa Instruments Corporation N/-VSA User manual Table of contents Chapter 3 VISA Overview Introduction Objectives of VISA Programming with VIsA Beginning Terminology...... Communication channels .3-5 The resource manager.. Register Communication Example of Interface Independencc…… Chapter 4 Message-Based Communication Introduction 4-1 Basic io se 4-2 Synchronous Read/Write Services 4-2 Asynchronous Read/Write Services .....44 Clear service 4-5 4-6 Status/Service Rcqucst Service 4-6 Formatted I/O Services 4-8 Formatted l/O Operations .4-8 Variable List operations 4 Manually Flushing the Formatted l/O Buffers 10 Automatically flushing the formatted I/o Buffers 4-11 Resizing the Formatted I/o Buffers 中·· 4-12 Controlling the Serial I/O Buffers ··········:·:··············::·· 4-12 Example VISA Message-Based Application Example4-l……… Chapter 5 Register-Based Communi cation Introduction High-Level Access Operations 5-2 High-Level block Operations Low-Level Access Operations Overview of register Accesses from Computers Using Visa to Perform Low-Level Register Accesses perations versus Pointer Dereference……………… Manipulating the pointer 5-8 Examp 5-8 Bus errors ∧- VSA User manua O Nationa/ Instruments corporation Table of contents Comparison of High-Level Access versus Low-Level Access 5-9 Spee 5-9 Ease of use -10 Accessing Multiple Address spaces....... 5-10 Shared Memory operations 5-11 Shared Memory Sample code ····· 5-11 Example 5-2.............. 5-12 Chapter 6 VISA Resource Manager Purpose of the vIsa Resource Manager.…… Using the visa resource manager. 6-2 Accessing Resource Example 6-1 6-2 Searching for Resources 6-4 Example 6-2......... 6-4 Chapter 7 VISA Events Introduction… 7-1 Supported Events. .........7-2 Enabling and Disabling Events Queuing 74 Callbacks Callback modes 7-6 Independent Qu 17-7 The user Handle parameter ......................7-8 Queuing and Callback Mechanism Sample Code ..................7-9 Example 7-1 7-9 he Life of the e 7-11 Event Context with the Queuing Mechanism ................7-11 Event Context with the callback mechanism 7-11 chapter 8 VISA Locks Introduction 8-1 Lock Types ·;······…···· 8-1 Lock Sharin g 8-2 Acquiring an Exclusive Lock While owning a Shared Lock 8-3 Locking Sample code.… 8-4 Example 8-l 8-4 C Nationa Instruments Corporation W N/-VSA User manual Table of contents Chapter 9 NI-VSA Platform-Specific and Portability Issues Programming Considerations Multiple applications Using the NI-VISA Driver 9-1 Low-Level Access functions .9-2 Interrupt Callback Handlers .9-2 Accessing VXiplug&play Files...........9-4 Multiple interface support issues 9-5 VXI and gPIb platforms 9-5 Multiple gpiB-vXI Support........ Serial Port support VME Support..…, Windows 3.x issues …9)-7 Installation overview 9-7 Memory model Application Stack Size.........................9-8 Appendix A Visual Basic Examples Appendix B Customer Communi cation Glossary Index Tables Table1-1.NI- VISA Support......,,……, Table 9-1. How Visa Invokes callbacks 9-3 Table 9-2. Hlow to Find Your VXlplugrplay directory 94 Table 9-3. How Serial Ports are numbered 9-6 ∧- VSA User manua O Nationa/ Instruments corporation About Manual About this manual This manual contains information on using the VISA Library Application Programmers Interface(API. This manual is meant to be Ised with the Ml-vIsA Programmer Reference Manual Organization of This Manual This manual is organized as follows Chapter 1, Introduction, discusses how to use this manual, lists what you need to get started, and contains a brief description of the VISA Librar Chapter 2, Introductory Programming Examples, introduces some examples of common communication between instrument Chapter 3, VISA Overview, contains an overview of the VIsa Library. Chapter 4, Message-Based Communication, shows how to use the VISa library in message-based communication Chapter 5, Register-Bused Communicalion, shows how to use the VISA library in register-based communication Chapter 6, VISA Resource Manager, describes the purpose of the VISA Resource Manager in an instrumentation system and discusses its two most important aspects: opening sessions to resources, and searching for particular resources that are currentl available through the resource Manager. Nationa Instruments Corporation N/-VSA User manual Chapter 7, VISA Events, describes the VISa event model and how to use it Chapter 8. VISA Locks, describes Visa locks and how they are intended to be used Chapter 9, M-VISA Plalorm-Specilic and Porlabilily lssues discusses programming information for you to consider when developing applications that use the ni-visa driver Appendix a, visual Basic examples, shows the Visual Basic syntax of the aNSi C examples given earlier in this manual. The examples use the same numbering sequcnce for casy reference Appendix b, Customer Communication, contains forms you can use to request help from National Instruments or to comment on our products and manuals The Glossary contains an alphabetical list and description of terms used in this manual, including abbreviations, acronyms, metric prefixes, mnemonics, and symbols The index contains an alphabetical list of key terms and topics in this manual, including the page where you can find each one Conventions Used in this manual The following conventions are used in this manual bold Bold text denotes parameters, menus, menu items, dialog box buttons or options, or error messages. bold italic Bold italic text denotes a note, caution, or warning bold Bold text in this font denotes the messages and responses that the monospace computer automatically prints to the screen. This font also emphasizes lines of example code that are different from the other examples Italic text denotes emphasis, a cross reference, or an introduction to a key concept ∧- VSA User manua X O Nationa/ instruments corporation About This manual ita1⊥c Italic text in this font denotes that you must supply the appropriate monospace words or values in the place of these items monospace Text in this font denotes text or characters that are to be literally input from the keyboard, sections of code, programming examples, and syntax examples. This font is also used for the proper names of disk drives, paths, directories, programs, subprograms, subroutines, device names, functions, operations, variables, filenames, and extensions, and for statements and comments taken from program code Abbreviations, acronyms, metric prefixes, mnemonics, symbols, and terms are listed in the glossary How to Use this documentation set Use the documentation that came with your gPib and/or vXi hardware and software for Windows to install and configure your system Refer to the read me first document for information on installing the nI-Visa distribution media Use the Ni-visa User manual for detailed information on how to ogram usin ng VISA Use the Nl-VISA Programmer Reference Manual for specific information about the attributes events and operations, such as format syntax, parameters, and possible crrors Related documentation The following documents contain information that you may find helpful as you read this manual ANSI/IEEE Standard 488. 1-1987, IEEE Standard Digital Interface for Programmahle /nstrumentation ANSI/IEEE Standard 488.2-1992. IEEE Standard Codes, Formats Protocols and Common commands ANSI/IEEE Standard 1014-1987, IEEE Standard for a versatile Backplane Bus. VMEbus C National Instruments Corporation N/-VSA User Manual
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: nivisa使用方法
 输入关键字,在本站1000多万海量源码库中尽情搜索: