为了基于现有类型创建新类型,应在引用该文件的文件中复制并粘贴该类型。这将使TestStand创建该类型的唯一命名副本。然后,您可以剪切新的类型并将其粘贴到您选择的类型调色板文件中。
以下说明显示了如何在自定义类型调色板文件中复制内置
PassFailTest
步骤类型:
- 单击视图»类型面板 ,
NI_Types.ini
在视图环中选择NI_Types.ini
。 - 右键单击
PassFailTest
步骤类型,然后从弹出窗口中选择复制。右键单击右键单击以插入类型,然后从弹出窗口中选择粘贴。 TestStand粘贴名称为PassFailTest_2 的新类型。
- 右键单击新的
PassFailTest_2
然后从弹出菜单中选择剪切。
- 在视图环中,选择要粘贴新类型的类型调色板文件。右键单击右窗格,然后选择粘贴。现在,您可以编辑此步骤类型以实施更改。
(可选)TestStand可以自动为您执行上述所有操作,并将内置步骤类型的副本粘贴到名为
MyTypes.ini
的类型选项板文件中。执行以下操作以完成此操作:
- 点击视图»类型面板,
NI_Types.ini
在视图环中选择NI_Types.ini
。 - 右键单击
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.