08-21-2016 11:06 AM
Hello,
I have a labview database read/write software (32bit), which works fine on windows xp /2000 / 7 (64bit). But it does not stable on windows 10 (64bit) at all. It pops up an error on most of the time. Please see the attached database VI. After starting my software, usually, there is no error on reading the frist database. but it pops up an error when opening the section database. the error code is -2147418113. it seems like it will be more stable if I put more than couple seconds delay before opening the second database.
Could anyone help me to figure out how to solve this issue? Appreciate.
Steven
Solved! Go to Solution.
08-21-2016 12:20 PM
Justin,
Instead of attaching a picture of the Block Diagram, which we can only "look at" (unless you want us, ourselves, to take the time to try to recreate it from the picture), attach the actual VI, which lets us really examine it closely, and even try to execute it. Note we can learn "non-obvious" things, like whether you are using 32-bit or 64-bit LabVIEW, what version, etc.
Bob Schor
08-21-2016 12:59 PM
Thanks for your reply. See the attached VI.
08-21-2016 02:50 PM
Thanks, Justin. Now that I see the code, I can at least ask "better questions" ...
[Admission -- while I've done a lot of things using LabVIEW, including linking with Excel, I've never used its DataBase tools, so I may miss some subtle details that, I hope, my colleagues can spot ...]
Bob Schor
P.S. -- do we call you Justin or Steven?
08-21-2016 03:44 PM
I don't know what the code 0x8000FFFF mean.
my software needs to open multiple tables from 3 Access databases. This VI is a sub-VI to read a table from a database. I assign a different password, DNS name and table name on this sub-VI to open the file that I need. the first database and the second database are two different database that the software read in order.
when the error occurs, it happens on the first step of this sub-VI. The DB tool Open Connec (String) VI creates an error.
200ms is the time, that I want to ensure there are at least 200ms break before this function is called again. I found out the longer time, the more stable, right now I put about 5 seconds delay in there. but It still pups up an error 3 out of 10. The executable program is installed on a windows 10 compact computer. Is that because the computer is not powerful enough?
08-21-2016 03:47 PM
What version of access do you have on the various PCs? Is it the same across each?
08-21-2016 03:51 PM
All the databases are the same version, that are .mdb files, should be access 2003 database.
08-22-2016 06:52 AM
I guess the Labview does not close the thread right away after a database operation is completed. It takes couple seconds to close it. Could anyone please give me some suggestion?
08-22-2016 09:51 AM
I'm not sure how LabVIEW is interacting with Microsoft Office routines, but I've seen similar issues when using the Report Generation Toolkit to work with Excel Workbooks. When I tried to do a "Create or Modify Workbook, Close Workbook, Reopen Workbook" sequence, I used to get a "mysterious Error" that seemed to be Excel-related -- putting a few hundred millisecond delay between the Dispose Report and New Report seemed to fix it. Sounds like you are experiencing a "Variation on a Theme by Microsoft" ...
Bob Schor
08-22-2016 09:59 AM
The software works on Windows7 64bit and windows xp. I add 10 seconds delay on the windows 10 computer, it still pops up an error. I really have no idea how to fix it. I am waiting for a solution. any help will be appreciated.