02-15-2019 12:55 PM
Hi all,
I can't seem to find the Application Directory VI in LabVIEW 2017. It's not there under the "File constants" directory. All the other vi's/functions are there. Any explanation or help is greatly appreciated.
02-15-2019 01:21 PM
I don't have 2017 installed but it's definitely there in my installs of 2015 and 2018.
You could try going to where it's stored on disk and adding it back to the palette:
<vi.lib>\Utility\file.llb\Application Directory.vi
02-16-2019 12:44 PM
Ha, ha, the joke's on me. I opened up LabVIEW 2017, and made the following simple VI:
(The Application Directory function on the left was from the File Constants sub-Palette on the File I/O Palette, right where it was supposed to be). Guess what I got when I ran this? <Not a Path>! Oops! From the Help,
"If the project is not saved, this VI returns <Not a Path>." So I saved it, and it returned the Folder in which it was saved (whew!).
If it is still failing for you, attach your VI and let us see if the problem is at your end (bad installation? bad code? bad luck?) or something else.
Bob Schor
02-18-2019 07:22 AM - edited 02-18-2019 07:24 AM
Hi Bob,
My problem is that the VI isn't available under File Constants. Please see my picture below. It has nothing to do with my VI, because I can open any VI (saved or not saved) and it won't be on the palette. It just doesn't seem to exist on my palette for some reason?
02-18-2019 07:34 AM
Try repairing you LabVIEW installation. It must have been corrupted somehow.
02-18-2019 08:03 AM
Do you open that palette on an VI from an RT-target?
"Application directory" does not exist in this palette.
Regards, Jens
02-18-2019 08:50 AM
Hi Jens,
That's exactly what I was doing. I didn't realize that wasn't possible! Thanks for letting me know. But if I want to create a csv file to read and write data to, is that possible to do on the RT Target? I'm using a PXI.
02-18-2019 10:47 AM
You will want to use absolute paths on RT. For instance, you could save your data to /home/lvuser/test.txt (NI Linux RT) or c:\test.txt (VxWorks).