IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> executable can't find the database
Adrie
post 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
Go to the top of the page
 
+Quote Post
CB
post 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



QUOTE (Adrie @ 08. Dec 2008, 12:16) *
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
Go to the top of the page
 
+Quote Post
Adrie
post 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



QUOTE (CB @ 08. Dec 2008, 12:04) *
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 worshippy.gif I had to double stripp the path. I only stripped it once. Thanks for the help, now the ADDO Tool is working great! thumbup.gif worshippy.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28.03.2024 - 10:10