LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong "Current VI's Path" in LV 2009

Solved!
Go to solution
Wrong.
0 Kudos
Message 21 of 31
(1,568 Views)

OK, I'll bite.

 

 

Right.


___________________
Try to take over the world!
0 Kudos
Message 22 of 31
(1,559 Views)

Tst your solution got a Kudos.

0 Kudos
Message 23 of 31
(1,555 Views)

Here's a tip for a better life:

 

First, try searching for an answer. Really try. And read the content.

 

 

Then, IF you didn't find an answer, you can post a question.

 

A whole question.

 

Not "wrong" or "this is stupid" or any of the other similar things you've done.

 

 

 

Be polite and respectful and you might actually get answers.


___________________
Try to take over the world!
Message 24 of 31
(1,551 Views)

tst wrote:
I should point out that LV 2009 also has a new VI (I believe it's called "Application Directory" and is in the file constants palette) which returns the folder of the application, similar to what the image Ben posted shows. In the EXE it returns the EXE's folder and in the IDE it returns the project or top level VI folder. If you do want the folder, you should use that from now on.

 

Is this different from the Application Directory Path property?

 

Because I remember that this property returns the EXE's folder in the run-time environment, but returns the LabVIEW.exe's folder in the IDE.

 

I feel that NI could have probably changed the behaviour of this property instead of adding one more file function.

 

 

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 25 of 31
(1,423 Views)
It works for me!
0 Kudos
Message 26 of 31
(1,419 Views)
What works for you? Smiley Indifferent  Can you be a bit more clear?
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 27 of 31
(1,415 Views)

 


What works for you? :smileyindifferent:  Can you be a bit more clear?

 

 

And mark the solution?

0 Kudos
Message 28 of 31
(1,406 Views)
Application path directory constant works fine during development and also as an executable.
0 Kudos
Message 29 of 31
(1,404 Views)

parthabe wrote:

 

I feel that NI could have probably changed the behaviour of this property instead of adding one more file function.


What about backward compatibility? Some people might be relying on the property returning the LabVIEW folder.


___________________
Try to take over the world!
Message 30 of 31
(1,399 Views)