Error 7 When Calling a Class In an Executable in LabVIEW

Updated Apr 29, 2020

Reported In


  • LabVIEW

Issue Details

I am using a class in LabVIEW. When I m using the development environnement, my program works fine.
But when I using it as an executable, I did include my class in the specification construction but I got this error:

Error 7 occurred at Get LV Class Default Value. vi
Possible reason(s):
LabVIEW: 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.  


This issue comes from the fact that the path you are giving to Get LV Class Default  is not correct.

While in development, giving the path for example C:MyApplicationDirectory\MyClass.lvclass will not get an error because LabVIEW is searching for the class inside this directory. But in reality, the right path is C:MyApplicationDirectory\MyClass\MyClass.lvclass

To solve this issue, you need to give the right path (in this example C:MyApplicationDirectory\MyClass\MyClass.lvclass) to the Get LV Class Default, meaning that you need to include the directory of the class in it.