找回密码
 注册
搜索
查看: 2053|回复: 8

[资料] TestStand培训教程

[复制链接]
发表于 2010-3-8 13:34:22 | 显示全部楼层 |阅读模式
Introduction
Introduction.................................................................................................................xi
Technical Support Options .........................................................................................xii
Course Objectives.......................................................................................................xiii
Course Description .....................................................................................................xiii
Course Map.................................................................................................................xiv
Items You Need for this Course Module:...................................................................xv
Note on Hands-On Exercises...................................................................................... xvi
Lesson 1
Introduction to TestStand
Introduction.................................................................................................................1-1
The Role of a Test Executive......................................................................................1-2
The TestStand Goal ....................................................................................................1-3
What is TestStand? .....................................................................................................1-4
The TestStand Architecture ........................................................................................1-5
The Sequence Editor...................................................................................................1-6
The Operator Interface................................................................................................1-7
The TestStand Engine.................................................................................................1-8
Module Adapters ........................................................................................................1-9
The TestStand Architecture ........................................................................................1-10
Summary.....................................................................................................................1-13
Exercises
Exercise 1-1 Running a Sequence File..................................................................1-15
Exercise 1-2A Running a Sequence File from the LabVIEW
Operator Interface ............................................................................1-20
Exercise 1-2B Running a Sequence File from the
LabWindows/CVI Operator Interface..............................................1-25
Contents
TestStand Development Course Manual iv www.ni.com
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 Model.....................................................................................2-8
The Default Process Model: Test UUTs Mode ..........................................................2-9
TestStandModel.seq....................................................................................................2-10
The Role of the Process Model within the TestStand Architecture............................2-11
Exercises
Exercise 2-1 Understanding the Sequence File .....................................................2-15
Exercise 2-2 Running a Sequence File with Breakpoints and
Single Stepping.................................................................................2-21
Exercise 2-3 Understanding the Process Model ....................................................2-28
Lesson 3
Creating Sequences
Introduction.................................................................................................................3-1
How to Create Test Sequences ...................................................................................3-2
Action 1 : Specify the Adapter ...................................................................................3-3
Action 2: Select the Step Type ...................................................................................3-4
Step Types...................................................................................................................3-5
Action 3: Specify the Test Module .............................................................................3-6
Specifying the Module................................................................................................3-7
Specifying the Module: Search Directories ................................................................3-8
Action 4: Configure Step Properties ...........................................................................3-9
Step Properties: General Tab ......................................................................................3-10
Step Properties: Preconditions ....................................................................................3-11
Step Properties: Run Options......................................................................................3-12
Step Properties: Post Actions......................................................................................3-14
Step Properties: Loop..................................................................................................3-15
Step Properties: Expressions.......................................................................................3-17
Exercises
Exercise 3-1 Creating Steps in the Sequence Editor .............................................3-23
Exercise 3-2 Configuring Loop Options ...............................................................3-34
Exercise 3-3 Creating a Sequence .........................................................................3-38
Exercise 3-4 Running Sequences in Parallel (Optional) .......................................3-58
Contents
© National Instruments Corporation v TestStand Development Course Manual
Lesson 4
TestStand Parameters, Variables, and Expressions
Introduction.................................................................................................................4-1
Parameters...................................................................................................................4-2
Parameters: Passing data from top-level sequences to subsequences.........................4-3
TestStand Variables ....................................................................................................4-4
Local Variables ...........................................................................................................4-5
Creating Locals Variables...........................................................................................4-6
Sequence File Global Variables..................................................................................4-8
Creating Sequence File Global Variables ...................................................................4-9
Station Globals............................................................................................................4-10
The Expression Browser.............................................................................................4-11
Exercises
Exercise 4-1 Using Local Variables ......................................................................4-19
Exercise 4-2 Examine the Uses and Differences between Locals,
File Globals, and Station Globals.....................................................4-22
Exercise 4-3 Using Expressions to Change Step Properties..................................4-30
Exercise 4-4 Passing Parameters ...........................................................................4-39
Exercise 4-5 Dynamically Selecting Which Sequence to Run..............................4-49
Exercise 4-6 Using the UUT Serial Number to Determine Which
Sequence to Run ...............................................................................4-50
Lesson 5
Creating Test Modules in External Environments
Introduction.................................................................................................................5-1
Creating Tests in External Application Development Environments (ADEs) ...........5-2
Methods of Data Transfer for TestStand ....................................................................5-3
Method 1—Passing Parameters Directly Using Structures ........................................5-3
Using Clusters to Pass Data from LabVIEW..............................................................5-4
Using Structures to Pass Data from LabWindows/CVI..............................................5-6
Method 2—Passing Arbitrary Number of Parameters Directly..................................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
Using TestStand ActiveX Automation Functions in LabVIEW.................................5-16
An Example of Using ActiveX Automation in LabVIEW .........................................5-17
Using ActiveX Automation in LabWindows/CVI......................................................5-18
An Example Of Using The TestStand API Instrument Driver In
LabWindows/CVI.....................................................................................................5-19
Using TestStand to Generate Code Templates ...........................................................5-24
Code Templates ..........................................................................................................5-25
Contents
TestStand Development Course Manual vi www.ni.com
Exercises
Exercise 5-1A Creating Pass/Fail Tests in LabVIEW..............................................5-27
Exercise 5-1B Creating Pass/Fail Tests with LabWindows/CVI.............................5-33
Exercise 5-1C Creating Pass/Fail Tests for the DLL Flexible
Prototype Adapter.............................................................................5-44
Exercise 5-2A Creating Numeric Limit Tests with LabVIEW ................................5-54
Exercise 5-2B Creating Numeric Limit Tests with
LabWindows/CVI.............................................................................5-59
Exercise 5-2C Creating Numeric Limit Tests for the DLL
Flexible Prototype Adapter...............................................................5-67
Exercise 5-3A Debugging Tests Using LabVIEW...................................................5-80
Exercise 5-3B Debugging Tests Using LabWindows/CVI......................................5-84
Exercise 5-3C Debugging Tests that use the DLL Flexible
Prototype Adapter.............................................................................5-88
Exercise 5-4A Using the ActiveX API in Code Modules
with LabVIEW .................................................................................5-91
Exercise 5-4B Using the ActiveX API in Code Modules
with LabWindows/CVI ....................................................................5-100
Exercise 5-4C Using the ActiveX API in Flexible DLL Code
Modules ............................................................................................5-110
Exercise 5-5A Creating a Simple Test Using the LabVIEW
Standard Prototype Adapter .............................................................5-122
Exercise 5-5B Creating A Simple Test Using The C/CVI
Standard Prototype Adapter .............................................................5-124
Exercise 5-6A Passing Parameters from TestStand to LabVIEW
using The TestStand API..................................................................5-125
Exercise 5-6B Passing Parameters from TestStand to
LabWindows/CVI using The TestStand API ...................................5-127
Exercise 5-7 Passing Data Between TestStand and a Test
Module Using the DLL Flexible Prototype Adapter........................5-129
Lesson 6
User Management
Introduction.................................................................................................................6-1
The TestStand User Manager .....................................................................................6-2
Default User Profiles in TestStand .............................................................................6-3
Linking Windows System Users.................................................................................6-5
Exercise
Exercise 6-1 Setting User Login Access and Privileges........................................6-7
Contents
© National Instruments Corporation vii TestStand Development Course Manual
Lesson 7
Customizing TestStand
Introduction.................................................................................................................7-1
Customizing TestStand ...............................................................................................7-2
Modifying the Process Model.....................................................................................7-3
Example Process Model: Test UUT Mode .................................................................7-4
What is the TestStand Process Model?.......................................................................7-5
Modifying The Process Model ...................................................................................7-6
Method 1—Overriding Model Callbacks in the Process Model.................................7-6
Method 2—Modifying the Process Model Directly ...................................................7-8
Customizing Report Generation .................................................................................7-10
Report Options Dialog Box ........................................................................................7-11
Using an External Report Viewer from TestStand .....................................................7-12
Exercises
Exercise 7-1 Modifying Callbacks ........................................................................7-17
Exercise 7-2 Customizing Report Generation .......................................................7-21
Exercise 7-3 Modifying the HTML Report...........................................................7-26
Exercise 7-4 Editing a TestStand Process Model ..................................................7-32
Lesson 8
TestStand Types
Introduction.................................................................................................................
 楼主| 发表于 2010-3-8 13:46:12 | 显示全部楼层

TestStand培训教程

【文件名】:1038@52RD_TestStand培训教程.part1.rar
【格 式】:rar
【大 小】:1457K
【简 介】:
【目 录】:


点评回复 1 0

使用道具 举报

 楼主| 发表于 2010-3-8 13:46:56 | 显示全部楼层

TestStand培训教程

【文件名】:1038@52RD_TestStand培训教程.part2.rar
【格 式】:rar
【大 小】:1457K
【简 介】:
【目 录】:
点评回复

使用道具 举报

 楼主| 发表于 2010-3-8 13:47:36 | 显示全部楼层

TestStand培训教程

【文件名】:1038@52RD_TestStand培训教程.part3.rar
【格 式】:rar
【大 小】:987K
【简 介】:
【目 录】:
点评回复

使用道具 举报

发表于 2010-3-9 02:05:25 | 显示全部楼层
哪个版本的?
点评回复

使用道具 举报

 楼主| 发表于 2010-3-9 10:55:59 | 显示全部楼层

版本

TestStand version 1.0 or later
点评回复

使用道具 举报

发表于 2010-5-20 21:22:56 | 显示全部楼层
没钱了啊
点评回复

使用道具 举报

发表于 2010-5-20 21:27:05 | 显示全部楼层
啊啊啊啊啊啊
点评回复

使用道具 举报

发表于 2013-8-31 20:40:40 | 显示全部楼层
噶时光时光的
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-11-23 15:19 , Processed in 0.066115 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表