From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



在Veristand 2009中删除一个Custom Device项目就会自动删除相关的空父节点



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

问题: 当我把系统浏览器中Custom Device里最后一个资源项删除后,整个Custom Device资源也自动删除了。但是我并不希望它被自动删除,我之后还想在里面添加新的资源项目,我该如何修正整个问题。

解答:

这是一个在NI VeriStand 2009被认定的bug,并且已经被添加到CAR 171094中。一个替代的解决办法是运用LabVIEW编辑一个Custom Device的XML文件,再重建该设备。首先先备份该XML文件,然后再修改编辑它。你必须重启NI Veristand来使得这些改动生效。注意: A一个格式错误的XML文件将会使得NI Veristand崩溃,即使该XML文件并没有关于系统描述的这一段内容。

<Shared Docs>\National Instruments\VeriStand\Custom Devices目录下打开Custom Device的XML文件<device_name>.xml 在任何你想保存的条目下,如下图所示添加  <DeleteProtection>true</DeleteProtection> 标志:


<Page>
      <Name>
        <eng>Channel Groups Page</eng>
        <loc>Channel Groups Page</loc>
      </Name>
      <DeleteProtection>true</DeleteProtection>

...

</Page>


这个标志会让NI Veristand的系统浏览器保存该条目,即使它的所有子资源都已经被删除的情况下。



相关链接: Developer's Zone: Building Custom Devices for NI VeriStand

附件:





报告日期: 03/05/2010
最近更新: 09/14/2011
文档编号: 574E3UXK