LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in generating an installer for a database connectivity project

Solved!
Go to solution

I think this is an extremely simple database, and I did not use any USER Privelage 

 

And I think also there is no problem in the connection because the Select vi works well 🙂

0 Kudos
Message 11 of 35
(1,169 Views)

Abodorra,

 

do what I wrote. You have functions, that try to insert data, and the error out Output just goes into a case structure, this results in:

 

the error autohandling does not report this error !!

 

Get there some error handling VI to see what your error is !!

 

Excuse me, but how can you have time to produce fancy front panels and in the same time have so messy block diagram ? The code is really hard to follow or read...

0 Kudos
Message 12 of 35
(1,163 Views)

I just have a few comments.

Where are you having the mdb file stored when you are runing the exe file of the program?

And what are the operation system on that pc?

 

On the code:

I also have a hard time following the code. Part of the is because you use a non english alphabet, and this makes reading the buttons hard. 


But you should realy think about taking some of the tutorial and courses from NI. You know, if you have a valid SSP you can take the courses online?

You need to look at design patterns, to structure your code better.

 

0 Kudos
Message 13 of 35
(1,157 Views)

the mdb is in the same folder of the exe file

the operating system is windows 7

0 Kudos
Message 14 of 35
(1,140 Views)

what course do you recommend me to take ....

0 Kudos
Message 15 of 35
(1,137 Views)
Solution
Accepted by topic author Abodorra

If the mdb and exe files are stored in a folder under program files in windows 7, then the program don't have permission from windows to change the file. It can read the file, but not write to it.

 

Move the mdb to another location, like the program data folder, were the program is allowed to write to a file. 

You can use the "Get System Directory.vi" from the File I/O->File Constants palet to dynamicly get the program data folder.

 

I would start with Core 1 course, if I was you.

And also get one book: LabVIEW Style book, by Peter A. Blume. 

http://www.amazon.com/LabVIEW-Style-Book-Peter-Blume/dp/0131458353

I know it is some years old, but it still applies for doing good LabVIEw programming.

 

Message 16 of 35
(1,131 Views)

You can try to move the whole program directory to different disk (not the system one) in order not to modify the existing code.

0 Kudos
Message 17 of 35
(1,127 Views)

Tahnk you all very much I tried it and it works fine I really appreciate your efforts and your kind advices also

I changed the installation directory and every thing is great 🙂

 

 

Thank you all 

0 Kudos
Message 18 of 35
(1,117 Views)

I've tried the get system directory vi and I select my documents, but now, how can I insert this file into my documents during installation.

0 Kudos
Message 19 of 35
(1,088 Views)

I've tried the get system directory vi and I select my documents, but now, how can I insert this file into my documents during installation.

0 Kudos
Message 20 of 35
(1,079 Views)