使用了声音和振动工具包的LabVIEW应用程序运行按钮损坏

更新 Jul 16, 2026

问题详述

我使用LabVIEW的声音和振动工具包创建了一个简单的VI(如下图),在LabVIEW开发环境下VI可以正常运行。
image.png
但用其创建应用程序可执行文件exe时会发生以下错误:

The build was unsuccessful.
Possible reason
A VI broke during the build process from being saved without a block diagram. Either open the build specification to include the block diagram of that VI or enable debugging to include the block diagrams of all VIs in the build. Report this error to National Instruments technical support.

C:\Program Files (x86)\National Instruments\LabVIEW 2020\vi.lib\addons\_NISVFA\_Generation\Signal Generation\SV Signal\Calculate Number of Remaining Samples.vi


错误

在应用程序属性的高级类别中选择启用调试后可以成功生成exe

但exe的运行按钮损坏,无法运行。
断路
该如何解决这个问题?

解决方案

附加排除项类别中取消选择移除未使用的多态VI实例可以解决,如下图所示。

相关信息

声音和振动工具包中有一个与库关联的菜单项,当创建应用程序时,若选择包含苦中所有项的话,会把这个菜单项一同带入,而这个菜单项是没有程序框图的,因而引发了相关问题。