我是否必须在 Program Files 下构建 LabVIEW 仪器驱动程序?

发布于 2024-07-14 01:29:17 字数 555 浏览 6 评论 0原文

我正在尝试为我们销售的设备构建一个 LabVIEW 即插即用仪器驱动程序项目。 我按照说明创建项目,并使用 LabVIEW 程序创建了项目:

C:\Program Files\National Instruments\LabVIEW 2011\instr.lib

我想我可以将该文件夹连接到源代码管理并在那里完成所有工作,但在 Program Files 下工作感觉很奇怪。 当我尝试将项目文件夹移到常规工作区文件夹中时,它破坏了所有子调色板文件(*.mnu)。 我可以重新创建它们,但恐怕当我们的客户从 LabVIEW 网站安装驱动程序时,它们将无法工作。

是否可以移动驱动程序项目,或者是否必须保留在默认位置? 如果我们的一位客户将 LabVIEW 安装在其他位置(例如在驱动器 D: 上),驱动程序菜单是否对他们不起作用?

I'm trying to build a LabVIEW plug and play instrument driver project for a device we sell. I followed the instructions to create a project, and it created the project in with the LabVIEW program:

C:\Program Files\National Instruments\LabVIEW 2011\instr.lib

I suppose I could connect that folder to source control and just do all the work there, but it feels weird to be working under Program Files. When I tried to move the project folder out into my regular workspace folder, it broke all the subpalette files (*.mnu). I could recreate them, but I'm afraid they wouldn't work for our customers when they install the driver from the LabVIEW web site.

Is it possible to move a driver project around, or does it have to stay in the default location? If one of our customers has installed LabVIEW in a different location (say on drive D:) will the driver menus not work for them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

怂人 2024-07-21 01:29:17

我不赞成将 user.lib 用于 SCC 项目。 同时使用多个 LabVIEW 版本是一个大问题。
这是我的例程:

  1. 创建仪器库并将所有代码保存在以下划线 ('_') 开头的文件夹中 (_foo)
  2. 在 '_foo' Mylib.mnu 的父文件夹中创建 .mnu 文件,添加您需要的图标。
  3. 使用 OpenG 软件包生成器,我创建了一个安装程序例程,将 mnu 文件和文件夹放置在 instr.lib 中。
  4. 重新启动 LabVIEW 后,仪器驱动程序将显示在仪器面板中。

如果将代码保持在与 mnu 文件相同的相对位置,则不会出现丢失 VI 的问题。

I'm not in favour of user.lib for SCC'd items. using several LabVIEW versions at a time is a big problem.
Here is my routine:

  1. Create the instrument library and save all code in a folder starting with an underscore ('_') (_foo)
  2. Create an .mnu file in the parent folder of '_foo' Mylib.mnu, add the icons you need.
  3. With OpenG package builder I create an installer routine that placed the the mnu file and the folder in instr.lib
  4. After a restart of LabVIEW the instrument driver shows up in the instruments palette.

If you keep the code in the same relative position to the mnu file there is no problem with missing VIs.

Ton

月下凄凉 2024-07-21 01:29:17

仪器驱动程序始终位于当前 LabVIEW 版本文件夹中的“instr.lib”文件夹中。 LabVIEW 中为此仪器驱动程序文件夹设置了一个环境路径,因此它将始终指向安装所使用的 LabVIEW 的正确驱动器。

您应该将该文件夹保留在向导使用的位置,以确保在分发给客户时子选板菜单指向正确的位置并且所有 VI 都正确链接。

我对 user.lib 使用源代码管理,它位于类似的位置并且没有问题。

Instrument drivers are always located in the 'instr.lib' folder in the current LabVIEW version folder. There is an environmental path set up in LabVIEW for this intrument driver folder so it will always point to the correct drive for the installation of LabVIEW used.

You should keep the folder in the location used by the wizard to ensure that when distributed to your customers the sub palette menus point to the correct location and all the VIs link correctly.

I use source control for user.lib which is in a similar location and have no problems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文