单次通过(Single Pass)执行中允许序列号条目



主要软件:
主要软件版本: 3.1
主要软件修正版本: N/A
次要软件: N/A

问题:
我经常使用 Execute»Single Pass 执行我的测试序列。我想要为每个测试的 UUT 输入一个序列号,并且将这个序列号包含到报告中,就像 TestUUT 执行的那样。我如何实现?

解答:
设置序列号只需要一个属性,该属性会隶属于测试,并包含在报告中。这个属性是字符串类型,有如下查找字符串:

RunState.Root.Locals.UUT.SerialNumber

允许操作员输入一个序列号的简单的方式是使用 Message Popup 步骤:
  1. 右键点击 Message Popup 步骤并选择 Edit Message Settings
  2. 在 Configure Message Popup Step 对话框中的 Text And Buttons 标签页下,输入期望的标题和消息表达式
  3. 在 Configure Message Popup Step 对话框的 Options 标签页下,选择 Enable Response Text Box
  4. 点击 OK 关闭 Configure Message Popup Step 对话框
  5. 右键点击 Message Popup 步骤并选择 Properties
  6. 在 Expressions 标签页下,为 Post-Expression 输入下列表达式:
    RunState.Root.Locals.UUT.SerialNumber = Step.Result.Response
  7. Click OK to close the step properties dialog

Now, the text entered into the Message Popup will be used for the serial number。为了将这个行为限定在一个序列中, Message Popup 步骤可以放置在序列文件的 MainSequence 中。

如果希望这个行为对工作站上单次通过执行的任意序列都有效,这个 Message Popup 步骤可以放置在过程模型序列文件的单次通过序列中,比如 SequentialModel.seq。在修改过程模型中的序列之前,从

<TestStand>\Components\NI\Models\TestStandModels

拷贝序列文件到

<TestStand>\Components\User\Models\TestStandModels

一旦拷贝了过程模型序列文件,Message Popup 步骤就可以添加到合适的序列中。添加步骤以使其在 MainSequence Callback 之前执行。

更多关于自定制过程模型的信息,请参看 TestStand 参考手册的第 10 章。这个手册可以在 TestStand Sequence Editor»Help»Search the TestStand Bookshelf»TestStand Reference Manual 中找到,或者从下列链接获得。

相关链接: Product Manuals: TestStand Reference Manual (3.0)

附件:





报告日期: 09/19/2006
最近更新: 09/19/2006
文档编号: 3N0EHJ73