When I need to access project-related non-LabVIEW files in my VIs, I usually write code like this
File path relative to the VI path in LabVIEW 2019
I can't afford to use absolute paths because my collaborators don't set up source code control on their computers the same way I have it on mine, and I am fine with that.
Writing this type of code is tedious. I have to place four nodes and three wires between them to get one path. On top of that, coming up with the relative path requires either browsing the absolute path, and deletion of the portion of that, or copying and pasting paths from the OS.
I would like to express this with a single node. It could be a mode on the path constant, with some visual difference to convey that it's doing something else. Here is one idea
Path relative to the directory that contains the VI
You'd be able to browse the path the same way you do today, and change the mode with a right-click and/or configuration dialog.
This idea was inspired by TestStand, where you can typically indicate whether you want a path to be stored as absolute or relative.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.