利用包含声音和振动工具包VI的LabVIEW代码创建可执行文件时出现错误 7

更新 Jul 20, 2024

适用于

软件

  • LabVIEW Sound and Vibration Toolkit
  • LabVIEW 2022 Q3
  • LabVIEW 2023 Q1
  • LabVIEW 2023 Q3

问题详述

当我利用包含声音和振动工具包VI的LabVIEW代码创建可执行文件时,出现错误 7:
LabVIEW cannot find a file that is a dependency of a Startup, Exported, or Always Included VI.

File Not Found: C:\Program Files\National Instruments\LabVIEW 2022\vi.lib\addons\_NISVFA\_Shared subVIs\Spectrum Averaging\svfa_Average Array (complex) No State.vi

The missing file might be referenced by one of the libraries included in the build or by the file - Multifunction FFT (Simulated).vi. To fix this issue:

- Open all Startup, Exported, or Always Included VIs, recompile them (CTRL+SHIFT Click the Run arrow) and save them to update their dependencies.
错误7.png

解决方案

这是LabVIEW 2022和2023某些版本的bug。原因是源代码文件无法正确处理伪路径中的VI实例。

请按照如下做法解决此问题:
  1. C:\Program Files\NI\LVAddons\nisvt\1\vi.lib\addons中复制_NISVFA文件并将其放置在C:\Program Files\National Instruments\[LabVIEW版本]\vi.lib\addons中。
  2. ​​处理LabVIEW中的文件依赖关系。
  3. 生成可执行文件。
完成这些步骤后,LabVIEW将能够成功检测相关文件。