This is the eighth article of “The OpenG VIs that I couldn’t live without“, a series of articles showing some of my favorite OpenG VIs. In this article, I’m going to show a very useful VIs called the Current VIs Parent Directory. This VI outputs the path to the directory of the calling VI, regardless of whether the VI is located in a directory, LLB, or an EXE!

In the simple example, shown below, we are specifying that we want to read from a Configuration File named “setup.ini” which is located in the same folder as the calling VI.

Remember, you can use relative paths as shown, below (for example, if you keep your configuration in a “support” folder):

If you want to give this VI a try, you can obtain it using VI Package Manager (VIPM). Simply select the OpenG File Library (the oglib_file package from within VIPM), you will find the OpenG File Tools palette in the Functions palette under the OpenG submenu. (See here for a quick guide on how to install OpenG on VIPM.)
Jim, thanks for giving an illustrated tutorial for one more great OpenG VI! I’d love to see this series keep going!
I second that. As an intermediate user of LabVIEW I have always wondered what a lot of the openG Vi’s do but never had time to go in and look over each one.
The descriptions on the front panel are (correctly ) terse, however this does not help users who are looking for more depth, trying to learn what functionality is available. Nothing shows a concept better than a simple example that shows not only the functionality but also the VALUE of the functionalityI. Please continue the series!