Error 7 Occurred at Open VI Reference When Adding a Plug-in Panel to InstrumentStudio using Manual Layout

Updated May 21, 2026

Issue Details

I have developed an InstrumentStudio Plug-in using LabVIEW and copied the plug-in into the InstrumentStudio addons directory. When I attempt to add the plug-in to an InstrumentStudio panel using Manual Layout, I receive the following error:


An error occurred while running C:\Program Files\National Instruments\InstrumentStudio\Addons\MyTestPlugin\MyTestPlugin.lvlibp\MyTestPlugin.vi.

Error 7 occurred at Open VI Reference in VIHostExports.lvlib:OpenVI.vi:1690001->VIHostExports.lvlib:PanelHost.vi:4670003->VIHostExports.lvlib:PanelHost.vi.ProxyCaller

Possible reason(s):

LabVIEW: (Hex 0x7) File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.

VI Path: C:\Program Files\National Instruments\InstrumentStudio\Addons\MyTestPlugin\MyTestPlugin.lvlibp\\MyTestPlugin.vi

Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared library.

LabVIEW Real-Time: VIs built into executables cannot be accessed through VI Server calls. Use Source Distributions to dynamically call VIs on Real-Time targets.

Solution

When building an InstrumentStudio plug-in using LabVIEW, the file layout inside the packed library is impacted by what libraries were included.

 

The .gplugindata file created for the plug-in assumes there is only library in the plugin. If you add a second library to the plugin build specification, the .gplugindata must be updated in a text editor.

 

For example, if I create MyTestPlugin.lvlib the .gplugindata might contain a VIPath similar to:

VIPath=" MyTestPlugin.lvlibp\ MyTestPlugin.vi"

 

If I add a second library to my plugin, the VIPath in the .gplugindata will need to be updated similar to:

VIPath=" MyTestPlugin.lvlibp\ MyTestPlugin \ MyTestPlugin.vi"

 

You can determine the correct location using LabVIEW. There is a VI on the diagram palette named “Get Exported File List” found in the “Packed Library” palette. You can use that VI to provide path information about items in a packed library.