executable can't find the database |
executable can't find the database |
08. Dec 2008, 11:16
Post
#1
|
|
new Member Group: Members Posts: 2 Joined: 08.12.2008 Member No.: 80 LV Version: 8.5 Zertifizierung: keine |
Hello,
I have a problem using the addo tool. I made a program using labview 8.5 and the addo toolkit. Everything works fine until i made a executable. Than it gives the error 5012: the database file does not exist ! The database does exist and i placed it in the same folder as the .exe file. What do am i doing wrong? Greets, Adrie |
|
|
08. Dec 2008, 12:04
Post
#2
|
|
proven Member Group: Administrators Posts: 315 Joined: 16.10.2006 From: Düsseldorf Member No.: 2 LV Version: current Zertifizierung: CLA LV User seit: 2001 |
Hello, I have a problem using the addo tool. I made a program using labview 8.5 and the addo toolkit. Everything works fine until i made a executable. Than it gives the error 5012: the database file does not exist ! The database does exist and i placed it in the same folder as the .exe file. What do am i doing wrong? Greets, Adrie if you are using absolute path (hardcoded), the database file has to be in that place where you coded it, which is not recommended. if you are using relative path (recommended), then you have to "double strip" the path, because LV treats the exe-file like a folder. E.G. if you use "this VI --> VI's Path" to get the Path to the main VI, that path will be in an executable: HDD:\\examplefolder\myLabVIEWexe.exe\myMainvi.vi. If you "double stripp" this path, you'll get the folder, where your exe resides, and where your mdb-file shold be ... -------------------- künstliche Intelligenz ist besser als natürliche Dummheit!
rotabench:rotierende Prüfstände nach dem Baukasten-Prinzip |
|
|
08. Dec 2008, 13:08
Post
#3
|
|
new Member Group: Members Posts: 2 Joined: 08.12.2008 Member No.: 80 LV Version: 8.5 Zertifizierung: keine |
if you are using absolute path (hardcoded), the database file has to be in that place where you coded it, which is not recommended. if you are using relative path (recommended), then you have to "double strip" the path, because LV treats the exe-file like a folder. E.G. if you use "this VI --> VI's Path" to get the Path to the main VI, that path will be in an executable: HDD:\\examplefolder\myLabVIEWexe.exe\myMainvi.vi. If you "double stripp" this path, you'll get the folder, where your exe resides, and where your mdb-file shold be ... The problem is solved I had to double stripp the path. I only stripped it once. Thanks for the help, now the ADDO Tool is working great! |
|
|
Lo-Fi Version | Time is now: 19.04.2024 - 03:36 |