07-06-2021 09:29 AM
Hi, I made a simple executable "Linear Sweep.exe" from the Build Sweep by modifying some code from the Keithley 24XX.lvproj. The main vi is Keithley 24XX Sweep and Acquire Measurements with Export.vi.
The executable works, but it always asks the user to load the Write Delimited Spreadsheet (string).vi that's in the vi.lib dependencies. I cannot figure out why it won't assign and look for this vi in the supporting directory.
I have attached the zip file of the build folder (Sweep.zip) and a zip file (Keithley 24XX.zip) that contains the parent LabVIEW project (Keithley 24XX.lvproj). I have also attached a snapshot of the vi that fails to load each time and where LabVIEW is searching for the vi. I cannot figure out why it's searching there, as the "loading" folder is the correct one.
Any help is appreciated. Thanks!
Solved! Go to Solution.
07-06-2021 10:44 AM
A bunch of VIs are missing; including your main VI.
07-06-2021 10:55 AM
paul_cardinale,
I just downloaded the Keithley 24XX.zip on a different computer and it's still showing all the files are there? The main vi is stored in the examples folder.
Can you send a screenshot of the expanded Keithley 24XX folder and subfolders if it is still not there?
07-06-2021 04:02 PM
Here's what I get:
07-06-2021 04:25 PM
Ah, I'm sorry. Hopefully this works? I built the zip file in the build specifications and included the entire project this time. (I think maybe it was keeping the file paths from my computer the first time around because I never zipped a whole project and didn't realize their was a build specifications option 😐)
07-06-2021 05:20 PM
Now I get this:
07-14-2021 07:56 AM
Hi Paul,
I could be wrong, but I'm fairly certain all of the files are there. I asked my colleague to download the zip to his computer and he can see the files, but he doesn't have a LabVIEW license. The file sizes are the same as the originals though.
It looks like you are just trying to open the project and it's looking for the files at the path that I originally stored them. Other than an installer, I don't know how to fix that problem. The installer exe is too large to upload.
Have you tried just opening the vi's by extracting the zip folder and then opening them individually? It looks like that should work.
07-14-2021 11:42 AM
I've noticed that LabVIEW project-style drivers from third party vendors never seem to open up correctly unless in the instr.lib folder corresponding to the version of LV you are using. I don't know why. I never explored why because I always just put them where they want to be.
07-15-2021 07:16 AM
By placing the project in <instrlib> I was able to get the project* to see all the files; and also reproduce the problem.
I looks like 'Write Delimited Spreadsheet (string).vi' is the only direct dependency outside the project.
I got the build to work OK by setting the destination to a folder outside <instrlib>,
* Normally, the paths inside a .lvproj or ,lvlib file are relative to that file. But if a file is in <instrlib>, then it's path in the file is relative to <instrlib>.
07-15-2021 10:26 AM
vi.lib and instr.lib are development system paths, the run-time engine doesn't typically know where these actually are. (It can't resolve the <instr.lib> segment)
In this situation I've typically built my exe so that it pulls those VIs into the executable or build the driver into a PPL that follows the EXE or is put into a known path that would be the same on all systems.