Owning Palette: Path/Array/String Conversion Functions
Requires: Base Development System
Converts an array of strings into a relative or absolute path.
If you have an empty string in the array, the directory location before the empty string is deleted in the path output. This behavior is similar to moving up a level in directory hierarchy.
Add to the block diagram | Find on the palette |
Suppose the path to the VI containing this function is c:\dir1\main.vi. To use this function to build a relative path to another VI such as c:\dir1\dir2\called.vi, wire TRUE to relative. In array of strings, enter dir2 as the first element and called.vi as the second element. The function returns a relative path of dir2\called.vi. You can use the Build Path function to append the relative path to the output of the Current VI's Path function.
To build an absolute path to c:\dir1\dir2\called.vi, wire FALSE to relative. In array of strings, enter c as the first element, dir1 as the second element, dir2 as the third element, and called.vi as the fourth element. The function returns an absolute path of c:\dir1\dir2\called.vi.