TestStand-序列步骤属性

Ctrl-N创建一个新的Sequence,通过右键创建任意步骤
在这里插入图片描述

General

在这里插入图片描述

Name -步骤的名称。
Type -步骤类型。一般不需要设置。
Adapter-适配器。
Icon-步骤的图标。如果有兴趣,可以把图标添加到TestStand Public\Components\Icons。
Edit Properties-启动属性对话框,可以为该步骤创建和编辑属性。
Description-步骤的描述,根据步骤的类型和步骤使用的适配器而变化,自动生成的,不能手动输入。
Comment-注释。TestStand Sequence Editor在Steps窗格中显示的步骤的注释。步骤的注释也出现在TestStand为序列文件生成的文档中。用于后期维护。

Run Option

运行选项
在这里插入图片描述

Load Options-用于声明何时将代码加载至内存。
Unload Options-用于声明何时将代码从内存中移除。
Run Mode-为步骤设置以下运行模式值:
Nomal-正常。该步骤正常执行。
Skip-跳过。该步骤不执行。相反,步骤状态被设置为跳过。
Force to Pass-强制成功。步骤不执行,步骤状态被设置为Passed。
Force to Fail-强制失败。步骤不执行,步骤状态被设置为Failed。
Precondition Evaluation in Interactive Mode-以交互模式计算前提条件。确定TestStand在以交互方式运行步骤时是否计算步骤前提条件。
TestStand Window Activiation-TestStand窗口激活。确定TestStand应用程序在步骤完成时是否激活其窗口。
Result Record Option-结果记录选项。决定TestStand是否收集该步骤的结果。
Step Failure Cause Sequence Failure-步骤失败导致整个序列失败。只要有一个步骤测试失败整个序列的状态就是失败。
Ignore Run-Time Errors-忽略运行时错误。

Looping

循环
在这里插入图片描述

None-无
Fixed Number of Loops-固定循环次数。步骤最终状态由合格状态次数与总循环次数的比值决定。
Pass/Fail count-通过/失败次数。一直循环此步骤,直到它的通过或失败次数达到设定值或步骤循环次数达到设定的上限。步骤最终状态由合格或失败次数、循环次数是否达到上限决定。
Custom-自定义。

Post Action

在这里插入图片描述

Go next step-跳到下一步骤。
Goto step-跳到特定步骤。
Terminate Execution-终止执行。
Call sequence-调用序列。
Break-中断。

Switching

开关
在这里插入图片描述

Enable Switching-启用。
Switch Executive Virtual Device-开关执行虚拟设备。TestStand在运行时计算的表达式,以确定TestStand在其上执行切换操作的虚拟设备。
Operation-操作。连接或断开路。
Route to Connect-连接方式。正在连接。表达式需要是一个有效的规范字符串。
Route to Disconnect-断开连接的方式。正在断开指定路径的连接。
Multiconnect Mode-多连接。在一条特定线路上发生多个连接操作。
Operation Order-操作顺序。指定断开连接操作发生在连接之前还是连接之后。
Connection Lifetime-连接寿命。希望线路一直存在、稍后手动断开、直到步骤/序列/线程执行完成。

Synchronization

同步
指定TestStand围绕执行步骤执行的同步操作。
在这里插入图片描述

Use Lock to Allow Only One Thread at a Time to Execute the Step-使用锁一次只允许一个线程执行步骤。当启用此选项时,步骤在执行前获得锁,并在完成后释放锁。
Lock Name or Reference Expression-锁名称或引用表达式。步骤获取和释放的锁。
Batch Synchronization-批量同步。该步骤在执行前进入并在执行完成后退出的批量同步操作。

Expression

指定TestStand在调用step模块之前或之后计算的可选表达式。
在这里插入图片描述

Pre-Expression-前处理表达式。TestStand在调用代码模块之前计算的表达式
Post-Expression-后处理表达式。TestStand调用代码模块后计算的表达式。
Status-Expression-状态表达式。设置步骤的状态属性。

Preconditions

指定TestStand在一个序列的正常执行流中执行一个步骤时必须计算为True的条件
在这里插入图片描述

Precondition Expression-前置条件表达式。执行步骤时必须求值为True的表达式。
Precondition Builder-前置条件构建器。启动前置条件构建器对话框。
Expression Browser Dialog Box-表达式浏览器对话框。启动表达式浏览器对话框。
Check Expression for Errors-检查表达式是否有错。验证表达式控件中的表达式的语法。

Requirement

需求。标记步骤所涵盖的产品和单元需求
在这里插入图片描述

Requirements List-需求列表。一个字符串列表,每个字符串代表一个需求。

Additional Result

额外结果在这里插入图片描述

Additional Results-附加结果。列出执行该步骤时TestStand记录的附加结果。
Name-名称。指定附加结果名称的表达式。
Check or uncheck parameters using a filter-使用筛选器勾选或取消勾选参数。启动包含以下项的菜单。
Check Non-Filtered Parameters-检查非筛选参数。在参数筛选器中不包括的所有参数中放置一个复选标记。
Uncheck Filtered Parameters-取消选中过滤参数。从参数筛选器中包含的所有参数中移除选中标记。
Configure Parameter Filter-配置参数筛选器。
Select Result From List-从列表中选择结果。对于自定义的附加结果,从列表中选择一个项以将所有列设置为该项定义的值。
Value to log-指定附加结果值的表达式
type -附加结果的类型
Condition-条件。指定的条件的值为False时TestStand不会记录附加的结果。
Is measurement -启用此选项以在附加结果上设置PropFlags_IsMeasurementValue标志,该标志表示附加结果是一个度量
Is limit -启用此选项以在附加结果上设置PropFlags_IsLimit标志,这表明附加结果是一个测试限制。

Property

属性。显示该步骤的内置属性和自定义属性
在这里插入图片描述

最全的Teststand 教程(英文版) 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 ...............
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

斯金

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值