没有合适的资源?快使用搜索试试~ 我知道了~
TestStand基础教程1
5星 · 超过95%的资源 需积分: 50 69 下载量 114 浏览量
2013-07-24
08:12:56
上传
评论 4
收藏 4.08MB PDF 举报
温馨提示
试读
516页
teststand的基础教程资料,分为2部分,本教程为教程以---基本教程。有需要的可以下载,
资源推荐
资源详情
资源评论
TestStand I Fundamentals
Course Manual
Course Software Version 2.0
February 2001 Edition
Part Number 322317E-01
TestStand I Fundamentals Course Manual
Copyright
Copyright © 2001 National Instruments Corporation. All rights reserved.
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™, LabVIEW™, and TestStand™ are trademarks of National Instruments Corporation.
Product and company names mentioned herein are trademarks or trade names of their respective companies.
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 794 0100
Worldwide Offices
Australia 03 9879 5166, Austria 0662 45 79 90 0, Belgium 02 757 00 20, Brazil 011 284 5011, Canada (Calgary) 403 274 9391,
Canada (Ottawa) 613 233 5949, Canada (Québec) 514 694 8521, China (Shanghai) 021 6555 7838,
China (ShenZhen) 0755 3904939, Denmark 45 76 26 00, Finland 09 725 725 11, France 01 48 14 24 24, Germany 089 741 31 30,
Greece 30 1 42 96 427, Hong Kong 2645 3186, India 91805275406, Israel 03 6120092, Italy 02 413091, Japan 03 5472 2970,
Korea 02 596 7456, Mexico 5 280 7625, Netherlands 0348 433466, New Zealand 09 914 0488, Norway 32 27 73 00,
Poland 0 22 528 94 06, Portugal 351 1 726 9011, Singapore 2265886, Spain 91 640 0085, Sweden 08 587 895 00,
Switzerland 056 200 51 51, Taiwan 02 2528 7227, United Kingdom 01635 523545
© National Instruments Corporation iii TestStand I Fundamentals Course Manual
Contents
Introduction
Introduction................................................................................................................. xi
Technical Support Options ......................................................................................... xii
Course Objectives....................................................................................................... xiii
Course Map................................................................................................................. xiv
Items You Need for This Course ................................................................................xv
Lesson 1
Introduction to TestStand
Introduction to TestStand ........................................................................................... 1-1
The Role of a Test Executive...................................................................................... 1-2
Our Goal for TestStand............................................................................................... 1-3
What is TestStand? ..................................................................................................... 1-4
The TestStand Architecture ........................................................................................ 1-5
The Sequence Editor...................................................................................................1-6
The Operator Interface................................................................................................ 1-7
TestStand Engine ........................................................................................................1-8
Module Adapters ........................................................................................................1-9
The TestStand Architecture ........................................................................................ 1-10
Summary..................................................................................................................... 1-13
Exercise 1-1 Running a Sequence File.................................................................. 1-14
Exercise 1-2A Running a Sequence File from the LabVIEW
Operator Interface ............................................................................1-19
Exercise 1-2B Running a Sequence File from the
LabWindows/CVI Operator Interface.............................................. 1-24
Lesson 2
The TestStand Environment
Introduction................................................................................................................. 2-1
What is a sequence?.................................................................................................... 2-2
Step Groups ................................................................................................................2-3
TestStand Sequence Files ........................................................................................... 2-4
Debugging Tools ........................................................................................................ 2-5
The TestStand Process Models................................................................................... 2-8
Available TestStand Process Models.......................................................................... 2-9
Contents
TestStand I Fundamentals Course Manual iv ni.com
The Default Process Model: Test UUTs Mode ..........................................................2-10
SequentialModel.seq...................................................................................................2-11
The Role of a Process Model in TestStand.................................................................2-12
Workspaces and Source Control.................................................................................2-14
Workspaces and Projects Demo .................................................................................2-15
Summary.....................................................................................................................2-16
Exercise 2-1 Understanding the Sequence File .....................................................2-17
Exercise 2-2 Running a Sequence File with Breakpoints
and Single Stepping..........................................................................2-22
Exercise 2-3 Understanding the Sequential Process Model ..................................2-29
Lesson 3
Creating Sequences
Introduction.................................................................................................................3-1
How to Create Test Sequences ...................................................................................3-2
Step 1 : Specify the Adapter .......................................................................................3-3
Step 2: Select the Step Type .......................................................................................3-4
Step Types...................................................................................................................3-5
Step 3: Specify the Test Module.................................................................................3-6
Specifying the Module................................................................................................3-7
Specifying the Module: Search Directories ................................................................3-8
Step 4: Configure Step Properties...............................................................................3-9
Step Properties: General Tab ......................................................................................3-10
Step Properties: Preconditions ....................................................................................3-11
Step Properties: Run Options Tab ..............................................................................3-12
Step Properties: Run Options Tab (Continued) ..........................................................3-13
Step Properties: Run Options Tab (Continued) ..........................................................3-14
Step Properties: Post Actions Tab ..............................................................................3-15
Step Properties: Loop Options Tab.............................................................................3-16
Step Properties: Loop Options Tab (Continued) ........................................................3-17
Step Properties: Synchronization Tab.........................................................................3-18
Step Properties: Expressions Tab ...............................................................................3-19
Useful Step Type Features ..........................................................................................3-22
Sequence Call Options................................................................................................3-23
IVI Step Type Demo...................................................................................................3-24
Exercise 3-1 Creating Steps in the Sequence Editor .............................................3-28
Exercise 3-2 Configuring Loop Options ...............................................................3-38
Exercise 3-3 Creating a Sequence .........................................................................3-42
Exercise 3-4 Running Sequences in Parallel (Optional) .......................................3-60
Contents
© National Instruments Corporation v TestStand I Fundamentals Course Manual
Lesson 4
TestStand Parameters, Variables, and Expressions
Introduction.................................................................................................................4-1
TestStand Variables ....................................................................................................4-2
Parameters...................................................................................................................4-3
Parameters: Passing data to subsequences..................................................................4-4
Local Variables ...........................................................................................................4-5
Creating Local Variables ............................................................................................4-6
Sequence File Global Variables..................................................................................4-8
Creating Sequence File Global Variables...................................................................4-9
Station Globals............................................................................................................4-10
RunState Property Object ...........................................................................................4-11
RunState Subproperties...............................................................................................4-12
RunState Property Example........................................................................................4-13
The Expression Browser.............................................................................................4-14
Using the Expression Browser....................................................................................4-15
Defining Variables and Parameters ............................................................................4-16
Summary.....................................................................................................................4-21
Exercise 4-1 Using Local Variables ......................................................................4-22
Exercise 4-2 Examine the Uses and Differences between Locals,
File Globals, and Station Globals.....................................................4-25
Exercise 4-3 Using Expressions to Change Step Properties..................................4-32
Exercise 4-4 Passing Parameters ...........................................................................4-41
Exercise 4-5 Dynamically Selecting Which Sequence to Run..............................4-53
Lesson 5
Creating Test Modules in External Environments
Introduction.................................................................................................................5-1
Creating Tests in External Environments ...................................................................5-2
Data Transfer in TestStand .........................................................................................5-3
Using Clusters to Pass Data from LabVIEW..............................................................5-4
Using Structures to Pass Data from LabWindows/CVI..............................................5-6
Method 2—Passing Parameters Directly Without Using Structures ..........................5-8
Method 3—Using the ActiveX Automation API to Access Properties
and Methods .............................................................................................................5-12
What is ActiveX Automation?....................................................................................5-13
Summary of ActiveX Automation..............................................................................5-14
TestStand and ActiveX Automation ...........................................................................5-15
ActiveX Automation in LabVIEW .............................................................................5-16
An Example of ActiveX Automation in LabVIEW....................................................5-17
ActiveX Automation in LabWindows/CVI ................................................................5-18
An Example ActiveX Automation in In LabWindows/CVI.......................................5-19
Using TestStand Code Templates...............................................................................5-24
Code Templates ..........................................................................................................5-25
Summary.....................................................................................................................5-26
剩余515页未读,继续阅读
资源评论
- yaoyuanah6102013-08-15中文的就更好啦
- lghlgh9212017-04-05谢谢分享,很好的资源,有帮助
jake2006
- 粉丝: 5
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功