从内置步骤类型在TestStand中创建自定义步骤类型

更新 Apr 30, 2024

环境

软件

  • TestStand
  • TestStand 2.0

其他

TestStand

TestStand包含内置的步骤类型,位于NI_Types.ini.我想创建内置步骤类型的副本,并在MyTypes.ini或任何其他类型的调色板中MyTypes.ini修改。如何在TestStand中做到这一点?

为了基于现有类型创建新类型,应在引用该文件的文件中复制并粘贴该类型。这将使TestStand创建该类型的唯一命名副本。然后,您可以剪切新的类型并将其粘贴到您选择的类型调色板文件中。

以下说明显示了如何在自定义类型调色板文件中复制内置PassFailTest步骤类型:
  • 单击视图»类型面板 , NI_Types.ini在视图环中选择NI_Types.ini
  • 右键单击PassFailTest步骤类型,然后从弹出窗口中选择复制。右键单击右键单击以插入类型,然后从弹出窗口中选择粘贴。 TestStand粘贴名称为PassFailTest_2 的新类型。
  • 右键单击新的PassFailTest_2然后从弹出菜单中选择剪切
  • 在视图环中,选择要粘贴新类型的类型调色板文件。右键单击右窗格,然后选择粘贴。现在,您可以编辑此步骤类型以实施更改。
(可选)TestStand可以自动为您执行上述所有操作,并将内置步骤类型的副本粘贴到名为MyTypes.ini的类型选项板文件中。执行以下操作以完成此操作:
  1. 点击视图»类型面板NI_Types.ini视图环中选择NI_Types.ini
  2. 右键单击PassFailTest步骤类型,然后从弹出窗口中选择复制。在MyTypes.ini ,右键单击右键单击以插入Type然后选择粘贴 。将出现一条警告,指出以下内容:
The file did not previously reference one or more of the type(s) you added so TestStand attached these type(s) to the file.
If you want to create a new type based on an existing type, copy and paste the type within a file that already references the type so that TestStand pastes a uniquely named copy of that type.

因此,建议遵循第一系列的步骤来创建TestStand步骤类型的另一个副本。

附加信息

注意:在TestStand 2.0中,您将收到以下警告:

Type 'PassFailTest' cannot be modified because it is an NI Installed Type (You can disable this restriction in the Sequence Editor Options). Would you like to make a copy of the type 'PassFailTest'?

如果收到警告消息,请转至配置»序列编辑器选项,然后禁用允许编辑NI安装类型复选框。点击。 TestStand自动复制步骤类型,并在MyTypes.ini.粘贴名为PassFailTest_Copy 的新类型MyTypes.ini.