This error occurs because the alias name is no longer associated with the database. To resolve the error, first check if you have the Runtime or full NI-XNET driver installed on the target machine by checking the Software
tab in NI MAX.
If you have the NI-XNET Runtime driver installed on the target machine, you will have to create the alias programmatically with the XNET Database API (Measurement I/O >> XNET >> Database >> File Mgt), using the function shown in this image:
If you're using an example database:
This is because the NI-XNET Runtime driver does not install the example databases or XNET utilities such as XNET Database Editor or XNET Bus Monitor and so, the alias has not been created on the deployment computer and therefore can't be found when called by the VI.
If you have the full NI-XNET driver installed on the target machine, please follow the steps below to add the alias to XNET Database Editor on the target machine.
- Confirm that the example databases are installed in the correct location: <Public>\Documents\National Instruments\NI-XNET\Examples
- If they are not present on the target machine, repair the NI-XNET driver .
- Open NI-XNET Database Editor from the Start Menu.
- Navigate to File>>Manage Aliases. If the example databases are not already listed as an alias, select Add Alias.
- Navigate to the file location specified in step 1 and select the database.
- Confirm that alias and database were added to Database Editor. Confirm that spelling and syntax of the alias in XNET Database Editor match what is referenced in the executable.
- Rerun the executable.
If you're using a custom database:
You may need to delete the database from the computer and recreate it to reform the association between the alias and the file on disk. You can export the database to an XML file before deleting it, and then import it later so you don't have to recreate it from scratch.