07-29-2021 05:22 AM
Hi guys,
when I use XNET Database Add Alias.vi, sometimes I get the error:
Error -1074384576 occurred at XNET Database Add Alias.vi:3210002
Possible reason(s):
NI-XNET: (Hex 0xBFF63140) Database cache file cannot be removed or replaced on the disc (e.g., file is write-protected).
But when I isolate the code like this:
and I execute it separately, it works fine and I never get the error.
What's going on here? The database file is being used and I can't modify it? Should I "close" it in some way?
Thanks!
Solved! Go to Solution.
07-29-2021 09:18 AM
Ok, I found the problem.
The issue was the use of XNET database export.vi without XNET database close.vi after.
07-29-2021 09:36 AM
Glad you found a solution, but is there a reason you are removing it and re adding it? If the database is already added, and the file is the same, then why not just use that database alias? In my program I ended up CRCing the database before starting it, and if we try to add a database it first checks to see if the CRC matches one we already have and just use it instead of adding it. This means that even if the file name is different, or if it is stored in a different directory, we still can reuse the database already added.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-30-2021 03:21 AM
It's the first iteration, so indeed it may have inefficiencies :P. Having said that, the main idea is to have a fixed name as reference for a database, so this looked like a simple approach.
I'll have in mind what you commented anyway, thanks for sharing!