Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

X-NET Database Add Alias cache file error 1074384576

Solved!
Go to solution

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:

JoePerkins_0-1627553542885.png

 

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!

 

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 1 of 4
(2,193 Views)
Solution
Accepted by topic author JoePerkins

Ok, I found the problem.

 

The issue was the use of XNET database export.vi without XNET database close.vi after.

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 2 of 4
(2,189 Views)

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.

0 Kudos
Message 3 of 4
(2,181 Views)

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!

Best regards,
Néstor

LabVIEW 2017 + Windows 10
0 Kudos
Message 4 of 4
(2,135 Views)