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