05-28-2015 02:55 PM
I have been playing with the database vi's in LV11. I put together a test program and used the AP Builder to make an EXE. When it is run in the development PC everything is fine. But when I put the install into a clean (no NI libraries) PC, it hangs. Any ideas as to what I did not include in the Install? Software attached.
Steve
05-28-2015 03:24 PM
I don't believe there are any additional installer packages required for the database toolkit but of course you will need the appropriate LabVIEW runtime engine included. Also, you will need to set-up your database connection (ODBC or whatever) on the new PC so that your program can Access it. (A little MS humor... .. very little.)
05-28-2015 03:52 PM
My guess is that your Get UDL File Path is not actually finding the UDL (which contains the connection parameters). Remember that relative file paths inside of your EXE are different than in the development environment.
05-28-2015 04:03 PM
The RTE is in the Installer, but I do not know about "setting up the DB connection" Isn't that what I am doing with the first vi?
S
05-28-2015 04:04 PM
Really!?! How so? Why are the relative paths different?
S
05-28-2015 04:15 PM
http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363
05-28-2015 04:22 PM
I don't know what the first VI does since you didn't post it, but the name is Get UDL File Path. Going by that, this tells me it is probably looking for a UDL file so that a database connection can be established. Depending on how it "gets" the path, it could be returning the wrong path, as discussed in the above link.
05-28-2015 04:22 PM
@ycg44 wrote:
Really!?! How so? Why are the relative paths different?
S
The Get UDL File Path is using a property node Application:Directory Path in order to generate the path to the udl file. In the development environment this is the directory where LabVIEW.exe is located, i.e. c:\Program files..... etc.
When you run an executable, it points to the directory where the executable is located
05-28-2015 04:25 PM
Thanks, but the path does not appear to be it. I am using the "Application path,vi" and the udl is in the same directory as the vi. I just checked it with a probe and it looks right.
Any other ideas?
05-29-2015 09:03 AM
This is what I just got back from the customer in Germany. The error message is in German, however it appears to suggest that it is related to a file LabVIEW.mdb. But the path is that of the development PC, not the target PC. I have also included the path vi that I am using. Any ideas?