09-20-2017 11:56 AM
Hello All,
What should i type in the empty path constant so that it serve exactly the same function application directory palette provide?
09-20-2017 12:02 PM
Why would you want to make it a static value? What happens when you move your project to a different directory or a different computer or compile it into an EXE?
09-20-2017 12:05 PM
I dont want to make it static value (as i said i want it able to do exactly what application directory able to do)
i expecting there is certain string (eg /s,/n) that represent certain thing
09-20-2017 12:12 PM
09-20-2017 12:14 PM
/s is a space. /n is a newline character.
The Application Directory does what you need so why do you need to duplicate the functionality? What are you trying to do with this? The path constant can only accept a path static path.
09-20-2017 12:19 PM - edited 09-20-2017 12:19 PM
Hello Gerd,
i would like to increase code flexibility
i want to consolidate all my non variable value into one sub vi
I want to have a very good control over these values and can search and change them in one and only one vi, in short i try to make an "All in one", i dont want them to scatter around
but i have trouble defining application directory
for example
09-20-2017 12:22 PM - edited 09-20-2017 12:22 PM
path constant accept something like "../" that move upward one directory
so i was hoping is there some special character for the application directory
refer to my last post why i am trying to do this
09-20-2017 12:24 PM
i realize there is another way to do this
but i would like cleaner approach, a much "universal" approach
09-20-2017 12:26 PM
09-20-2017 12:27 PM
The Application Directory VI is not a constant. It is a VI with code that looks at where the VI is running (EXE, project, etc) and calculates the application directory. You can't get much more universal than that.