How to Obtain the File Path for Current XNET Database File

Updated Jul 12, 2018

Reported In



Issue Details

When getting XNET CAN or LIN frame information from a 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 and match with XNET alias name from the returned array of alias and find the corresponding file path from array of filepath
Note: This image is a LabVIEW snippet, which includes LabVIEW 2017 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 which is only supported on Windows. Refer to the VI help for further information. 


Not Helpful