I couldn’t live without “Current VIs Parent Directory”

Posted on Monday 14 May 2007

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!

Current VIs Parent Directory.png

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.)

3 Comments for 'I couldn’t live without “Current VIs Parent Directory”'

    May 14, 2007 | 9:06 am

    Jim, thanks for giving an illustrated tutorial for one more great OpenG VI! I’d love to see this series keep going!

    John Rouse
    May 14, 2007 | 9:27 am

    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!

Leave a comment



Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.

RSS feed for comments on this post |


Bad Behavior has blocked 610 access attempts in the last 7 days.