LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xnet alias 'lost' its database. How do I tell where it's looking?

Solved!
Go to solution

Hi,

 

I have several XNET sessions in my project, but one of them has 'lost' the database that it is associated with. I'm guessing the database may have been accidentaly deleted from our network, but I don't know where on the network the database was (or even what it was called). Is there some way of finding out the location of the database that goes with the xnet session/alias?

 

TIA,

 

Andrew

0 Kudos
Message 1 of 5
(2,840 Views)

Use \vi.lib\xnet\xnet.llb\XNET Database Get List.vi to list aliases and paths.

Its in Measurement I/O>XNET>Database>File Mgt palette.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 5
(2,824 Views)

Thanks for your help; it's certainly pointing me in the right direction. Unfortunately the XNET Database Get List.vi removes aliases from the list that are no longer valid. It's calling some external code (nixlvapi.dll)  within this vi so I still can't get to the data I need. Perhaps someone who understands these .dlls might be able to help?

0 Kudos
Message 3 of 5
(2,817 Views)
Solution
Accepted by topic author toddy

Hi Andrew,

 

Unfortunately once a database has been deleted there is no way to recover a path to it. If you cannot find the database yourself, perhaps one of your colleagues will have access to it, or you may have to rebuild the database. In future I would reccomend you keep a backup of any databases should this occur again.

 

 

Best Regards,

 

James Kent

James Kent | Applications Engineer | National Instruments UK & Ireland
w: uk.ni.com | ireland.ni.com
0 Kudos
Message 4 of 5
(2,774 Views)

Thanks James.

 

I've now re-built the database. It does seem a shame though, as the .dll obviously has access to something which gives the path for each alias.

0 Kudos
Message 5 of 5
(2,772 Views)