How to Obtain the File Path for Current XNET Database File

Updated Oct 26, 2020




When getting XNET CAN or LIN frame information from the XNET database file(*.dbc), LabVIEW uses an alias name.
How can I get the file path of the XNET database I am referring to?

There is no function or property node that directly outputs the current XNET database file path.
One workaround is to use XNET Database Get List VI and match with XNET alias name from the returned array of alias and find the corresponding file path from the array of the file path. 

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.

Additional Information

This workaround uses XNET Database Get List VI it is supported on Windows only. LabVIEW RT database deployments are managed remotely from Windows. Refer to the VI Help for further information.