LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with database connectivity in run time system

Solved!
Go to solution

@SKY_THE_CHALLENGER_OF_CHANGE wrote:

Dear Ranjit,

 

The apended path as well as the path in error msg are same.  And I have checked my database file is also located at the same place.

 

I think it is an issue related to 32-bit and 64-bit.  My developement system is a 32-bit machine where as the run time system is a 64-bit machine


And as your database is stored in the Program Files folder, you are runing your program with admin rights ?

Remember that on Windows 7, most programs are NOT allowed to change files stored in the Program Files folder.

 

Microsoft recomend that you store program data files in the ProgramData folder on Windows 7.

 

LabVIEW has inbuild functions to get the path for the ProgramData folder, both on Windows 7 and XP.

You can make your installer place your database in the ProgramData folder automatic when intalling your program.

0 Kudos
Message 21 of 26
(897 Views)

Dear Ranjit,

 

Frist of all thanks for sharing the links and other information.

 

Regarding the VI you can consider the same vi which you sent me for UDL EXAMPLE I have tried that also;even it doesnt work on win 7. (my vi will need hardware so its difficult to test it)

 

ProgramData folder can work, because I can read the database but cannot write.

0 Kudos
Message 22 of 26
(879 Views)

when you marked solution then you were oon same PC? I am using udl file to write data to DB from last 3yrs. There must be some problem with VI only.. Although its same please share it. 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 23 of 26
(877 Views)

can this be the problem?

0 Kudos
Message 24 of 26
(846 Views)

@dkfire wrote:

And as your database is stored in the Program Files folder, you are runing your program with admin rights ?

Remember that on Windows 7, most programs are NOT allowed to change files stored in the Program Files folder.

 

Microsoft recomend that you store program data files in the ProgramData folder on Windows 7.

 

LabVIEW has inbuild functions to get the path for the ProgramData folder, both on Windows 7 and XP.

You can make your installer place your database in the ProgramData folder automatic when intalling your program.


I can do with ProgramData folder buy what is the problem during creation of installer file. You need to provide different path for that.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 25 of 26
(843 Views)

@SKY_THE_CHALLENGER_OF_CHANGE wrote:

can this be the problem?


It was working before also right?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 26 of 26
(842 Views)