LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in running exe

Hi All
 
I am getting some errors when trying to run a labview exe.
 
I have to export the data into excel from labview.Withot making exe and running the vi it was working..But after making the exe i am getting error.
I dont know whether its because of the way i build the exe(because in exporting to excel all i used was built in control for report generation).
 
In the case of searching for the udl's name also i was facing the same problem.There is a vi that will find
the current working directory and i have placed the udl inside the current working directory.Suppose my udl name is dat.udl.then a subvi will search for the dat.udl in the current path .the udl be in the path C:\Documents\dat.udl and i have created the exe say Data Entry.exe in tha path C:\Documents\Data Entry.exe
Actually after making the exe i was getting an error related to the incorrect udl path,it was taking the udl path as C:\Documents\Data Entry.exe\dat.udl,Then i programmatically removed the string\Data Entry.exe from the current path so the vi will search for the udl in the correct path.(But i know that is not the correct way even i could solve that)
 
These two related errors i was getting only after making exe and running the same.Otherwise it was working.
 
Related to excel the error i was getting is...
 
Possible reason(s):
LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.
---
NI-488:  Non-existent board.
VI Path: C:\Documents\Data Entry.exe\Excel_Quit.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.
 
 
While making exe,
 
I have created .lvproj in the path C:\Documents\
 
Then in Application information i have set the target file name as Data Entry.exe and the destination directory as C:\Documents\
In source file and destination i havent changed as it was in the correct path.
 
In source file settings under the inclusion type ,start up vi was set as the vi's name(data entry.vi) and under dependencies,vi properties are set(centre,remove menu bar..)
and Data Entry.exe was selected already from the combo (from the options Destination Directory,Support directory and Data Entry.exe.But the title for the option (Set Destination for all contained items) was disabled already.Is the way i build the exe is the reason for error?
How do i rectify the error?
 
 
Thanks....
0 Kudos
Message 1 of 3
(2,987 Views)
Hi user_1,

it's the same question/reason as described here!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,983 Views)
Thank you so much for your help sir.
0 Kudos
Message 3 of 3
(2,962 Views)