02-04-2010 11:47 AM
Good morning,
I have a program which inserts data into two different MS access databases, using ODBC drivers. About once a week the program will lock up and the attached pop up is displayed. I have tried many different things, and continue to get the error. What may be causing the lock up?
Thank you,
Sarah
PS. I previously posted this message in the NI Teststand board by mistake.
02-08-2010 12:49 AM
02-08-2010 02:20 AM
Hi Sarah,
Do you run program continuously or start it many times in week? I have a feeling that I have seen this error once in my application. The problem was that I didn't closed database references. So be sure that when user press Stop button your application closes all database references.
BR, Jim
02-08-2010 10:22 AM
In response to Joshua - The program seems to lock up in the same location every time. The program cycles every 2 minutes and it locks up after switching on the first of 2 source power supplies in my test setup, before it begins turning on the first uut. I have added error handlers and clear error vi's, but so far I have not been successful. Since the lock up is intermittent, I am not able to do much troubleshooting.
In respose to Jim - The program runs all night and partially through the day. The program is designed to burn-in parts, at the end of the burn-in the tech. stops the program and unloads the parts. New parts are loaded into the burn-in fixtures, and the program is started up again, so within a one week period the program is stopped and started about 5 times. I do have a DB Tools Close Connection.vi for each of my databases at the very end of my program.
I have attached the code, I hope this might help.
Thanks,
Sarah
02-09-2010 01:01 AM
I check your VI. There was missing quite many VIs but I get the point. I can't find lock reason just by watching a VI. Maybe you can test open and close database references for every cycle. It takes some time but because you while loop is slow you can do that. This will reset timeouts if there is such.
I noticed that you save only one double value to 20 tables. Do you have a particular reason to use 20 tables in database? Your code will be more clean and efficient if you use one table where is one time column and 20 data columns. Also SQL can handle data more efficient because it is located in one table. Of course you might have other reasons to use 20 tables...
Regards, Jim
02-10-2010 09:59 AM
I think I will give the 1 table database a try. The reason I created 20 tables was to make it easy for the testing techs to sort through the data. I always program keeping the testing techs in mind. I try to make it as easy for them as possible.
Thanks,
Sarah