我如何在编程中访问LabVIEW注册表和license的信息?
主要软件: LabVIEW Development Systems
主要软件版本: N/A
主要软件修正版本: N/A
次要软件: N/A
问题: 我如何在对一个VI的编程中访问LabVIEW注册表和license的信息?我需要在打开LabVIEW时显示以下信息-Registered Organization,Registered Owner,和序列号。
解答: LabVIEW将注册信息存储在Windows注册表下的
HKEY_LOCAL_MACHINE\Software\National Instruments\LabVIEW\6.x (6.x为LabVIEW版本,也可是7.0)。数值名为“RegisteredOrganization","RegisteredOwner",和"SerialNo"。
你可以用LabVIEW中的Windows Registry Access VI在编程中同注册表交互。这些VI在
Functions » Advanced » Windows Registry Access VIs 模板。用Open Registry Key VI,带一个subkey:
SOFTWARE\National Instruments\LabVIEW\6.x\来创建key的reference。访问包括license信息的不同注册表数值(RegisteredOrganization, RegisteredOwner, SerialNo),用Read Registry Value Simple VI。你必须利用Close Registry Key VI来关闭key的reference。
相关链接:
附件:
报告日期: 10/02/2001
最近更新: 11/27/2003
文档编号: 2E1FFERY
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.