没有合适的资源?快使用搜索试试~ 我知道了~
首页NI-VISA编程手册

VISA
NI-VISA
TM
Programmer
Reference Manual
NI-VISA Programmer Reference Manual
March 2003 Edition
Part Number 370132C-01

Support
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
Worldwide Offices
Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599,
Canada (Calgary) 403 274 9391, Canada (Montreal) 514 288 5722, Canada (Ottawa) 613 233 5949,
Canada (Québec) 514 694 8521, Canada (Toronto) 905 785 0085, Canada (Vancouver) 514 685 7530,
China 86 21 6555 7838, Czech Republic 420 2 2423 5774, Denmark 45 45 76 26 00,
Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, Greece 30 2 10 42 96 427,
India 91 80 51190000, Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970,
Korea 82 02 3451 3400, Malaysia 603 9131 0918, Mexico 001 800 010 0793, Netherlands 31 0 348 433 466,
New Zealand 1800 300 800, Norway 47 0 66 90 76 60, Poland 48 0 22 3390 150, Portugal 351 210 311 210,
Russia 7 095 238 7139, Singapore 65 6226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197,
Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 886 2 2528 7227,
Thailand 662 992 7519, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment
on the documentation, send email to techpubs@ni.com.
© 1996–2003 National Instruments Corporation. All rights reserved.

Important Information
Warranty
The media on which you receive National Instruments software are warranted not to fail to execute programming 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 period. National Instruments does not warrant that the operation of the software 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 document is accurate. The document has been carefully reviewed for technical
accuracy. In the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequent
editions of this document without prior notice to holders of this edition. The 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.
E
XCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMER’S RIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF
N
ATIONAL INSTRUMENTS SHALL BE LIMITED TO THE 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 THE POSSIBILITY
THEREOF. 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, electronic or mechanical, including photocopying,
recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National
Instruments Corporation.
Trademarks
CVI
™
, IMAQ
™
, IVI
™
, LabVIEW
™
, Measurement Studio
™
, National Instruments
™
, NI
™
, NI-488
™
, NI-488.2
™
, ni.com
™
, NI-Motion
™
,
NI-VISA
™
, and NI-VXI
™
are trademarks of National Instruments Corporation.
Tektronix
®
and Tek are registered trademarks of Tektronix, Inc. Other product and company names mentioned herein are trademarks or trade
names of their respective companies.
Patents
For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file
on your CD, or
ni.com/patents.
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF
RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN
ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT
INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE
IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY,
COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS
AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE AND
HARDWARE COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL
DEVICES, TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR
MISUSES, OR ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE
HEREAFTER COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD
CREATE A RISK OF HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD
NOT BE RELIANT SOLELY UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOID
DAMAGE, INJURY, OR DEATH, THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO
PROTECT AGAINST SYSTEM FAILURES, INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS.
BECAUSE EACH END-USER SYSTEM IS CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING
PLATFORMS AND BECAUSE A USER OR APPLICATION DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN
COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT EVALUATED OR CONTEMPLATED BY NATIONAL
INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY RESPONSIBLE FOR VERIFYING AND VALIDATING
THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER NATIONAL INSTRUMENTS PRODUCTS ARE
INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT LIMITATION, THE APPROPRIATE DESIGN,
PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.

© National Instruments Corporation v NI-VISA Programmer Reference Manual
Contents
About This Manual
How to Use the Manual Set ...........................................................................................xiii
Conventions ...................................................................................................................xiii
Related Documentation..................................................................................................xiv
Chapter 1
Introduction
What You Need to Get Started ......................................................................................1-1
VXIplug&play Overview ..............................................................................................1-1
Supported Platforms ......................................................................................................1-2
Chapter 2
Overview of the VISA API
VISA Access Mechanisms.............................................................................................2-1
Attributes .........................................................................................................2-1
Events ..............................................................................................................2-1
Operations........................................................................................................2-2
VISA Resource Types ...................................................................................................2-2
INSTR..............................................................................................................2-2
MEMACC .......................................................................................................2-3
INTFC..............................................................................................................2-4
BACKPLANE .................................................................................................2-4
SERVANT.......................................................................................................2-4
SOCKET..........................................................................................................2-5
RAW................................................................................................................2-5
Description of the API ...................................................................................................2-6
Chapter 3
Attributes
VI_ATTR_4882_COMPLIANT ...................................................................................3-2
VI_ATTR_ASRL_ALLOW_TRANSMIT....................................................................3-3
VI_ATTR_ASRL_AVAIL_NUM.................................................................................3-4
VI_ATTR_ASRL_BAUD .............................................................................................3-5
VI_ATTR_ASRL_BREAK_LEN .................................................................................3-6
VI_ATTR_ASRL_BREAK_STATE.............................................................................3-7
VI_ATTR_ASRL_CTS_STATE...................................................................................3-8
VI_ATTR_ASRL_DATA_BITS...................................................................................3-9

Contents
NI-VISA Programmer Reference Manual vi ni.com
VI_ATTR_ASRL_DCD_STATE ................................................................................. 3-10
VI_ATTR_ASRL_DISCARD_NULL .......................................................................... 3-11
VI_ATTR_ASRL_DSR_STATE .................................................................................. 3-12
VI_ATTR_ASRL_DTR_STATE.................................................................................. 3-13
VI_ATTR_ASRL_END_IN.......................................................................................... 3-14
VI_ATTR_ASRL_END_OUT...................................................................................... 3-15
VI_ATTR_ASRL_FLOW_CNTRL.............................................................................. 3-16
VI_ATTR_ASRL_PARITY.......................................................................................... 3-18
VI_ATTR_ASRL_REPLACE_CHAR ......................................................................... 3-19
VI_ATTR_ASRL_RI_STATE...................................................................................... 3-20
VI_ATTR_ASRL_RTS_STATE .................................................................................. 3-21
VI_ATTR_ASRL_STOP_BITS.................................................................................... 3-22
VI_ATTR_ASRL_WIRE_MODE ................................................................................ 3-23
VI_ATTR_ASRL_XOFF_CHAR................................................................................. 3-24
VI_ATTR_ASRL_XON_CHAR .................................................................................. 3-25
VI_ATTR_BUFFER ..................................................................................................... 3-26
VI_ATTR_CMDR_LA ................................................................................................. 3-27
VI_ATTR_DEST_ACCESS_PRIV .............................................................................. 3-28
VI_ATTR_DEST_BYTE_ORDER .............................................................................. 3-29
VI_ATTR_DEST_INCREMENT ................................................................................. 3-30
VI_ATTR_DEV_STATUS_BYTE............................................................................... 3-31
VI_ATTR_DMA_ALLOW_EN ................................................................................... 3-32
VI_ATTR_EVENT_TYPE ........................................................................................... 3-33
VI_ATTR_FDC_CHNL................................................................................................ 3-34
VI_ATTR_FDC_MODE............................................................................................... 3-35
VI_ATTR_FDC_USE_PAIR ........................................................................................ 3-36
VI_ATTR_FILE_APPEND_EN ................................................................................... 3-37
VI_ATTR_GPIB_ADDR_STATE................................................................................ 3-38
VI_ATTR_GPIB_ATN_STATE................................................................................... 3-39
VI_ATTR_GPIB_CIC_STATE .................................................................................... 3-40
VI_ATTR_GPIB_HS488_CBL_LEN........................................................................... 3-41
VI_ATTR_GPIB_NDAC_STATE................................................................................ 3-42
VI_ATTR_GPIB_PRIMARY_ADDR.......................................................................... 3-43
VI_ATTR_GPIB_READDR_EN.................................................................................. 3-44
VI_ATTR_GPIB_RECV_CIC_STATE........................................................................ 3-45
VI_ATTR_GPIB_REN_STATE................................................................................... 3-46
VI_ATTR_GPIB_SECONDARY_ADDR.................................................................... 3-47
VI_ATTR_GPIB_SRQ_STATE ................................................................................... 3-48
VI_ATTR_GPIB_SYS_CNTRL_STATE .................................................................... 3-49
VI_ATTR_GPIB_UNADDR_EN................................................................................. 3-50
VI_ATTR_IMMEDIATE_SERV ................................................................................. 3-51
VI_ATTR_INTF_INST_NAME................................................................................... 3-52
VI_ATTR_INTF_NUM ................................................................................................ 3-53
VI_ATTR_INTF_PARENT_NUM............................................................................... 3-54
剩余422页未读,继续阅读
相关推荐








dxx518111
- 粉丝: 0
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

最新资源
- Docker实现Redis集群:打造高可用Nosql数据库方案
- 133款实用文件小图标的深度解析与应用
- TES光束线优化技术深入解析
- TH7122无线收发信机小型化设计方案
- 多用途字模提取与动画模拟软件发布
- MDBPlus软件:轻量级无需安装的MDB数据库读取工具
- 相见欢友情链接系统ASPX版 v1.0发布
- 电脑产品与建站模板免费下载资源
- 实现PB按钮变色效果的简便方法
- 搜狗输入法绝版机械键盘音效皮肤揭秘
- 51 AVR单片机USB ISP下载器驱动及软件下载
- 环境目标调查表Excel模板免费下载
- 全面掌握界面美化软件开发—FlatStyle源码解析
- Java简易下载器源代码分享
- 高效毕业设计答辩PPT模板推荐
- DEX2JAR: 将DEX文件转换为JAR的反编译解决方案
安全验证
文档复制为VIP权益,开通VIP直接复制

扫码关注,限时领取CSDN余额