When using a database file with NI-XNET, you can specify the file path or an alias to the file. The alias provides a shorter, easier-to-read name for use within your application.
For example, for the file path
C:\Documents and Settings\All Users\Documents\Vehicle5\MyDatabase.dbc
you can add an alias named MyDatabase. In addition to improving readability, the alias concept isolates your LabVIEW application from the specific file path. For example, if your application uses the alias MyDatabase and you change its file path to
your LabVIEW application continues to run without change.
The alias concept is used in most NI-XNET features for the database classes. The I/O names for database classes include features for adding a new alias, viewing existing aliases, deleting an alias, and so on. You also can perform these tasks at run time using the VIs in the NI-XNET functions palette Database»File Mgt subpalette.
An alias is required for deploying databases to LabVIEW Real-Time targets. When you deploy to a LabVIEW Real-Time target, the large text file is compressed to an optimized binary format, and you need to transfer that binary file to the target. You can use the database editor to transfer this file to the target or perform this programmatically. For more information about using databases with LabVIEW Real-Time, refer to Using LabVIEW Real-Time in the NI-XNET Manual.