取消
显示结果 
搜索替代 
您的意思是: 

get Labview exe folder

Hi!

 

How can I get the Installed LabVIEW.exe or labview palette path from exe?

(exe is created in LabVIEW)

 

Thanks

---
+++ In God we believe, in Trance we Trust +++
[Hungary]
0 项奖励
1 条消息(共 9 条)
10,391 次查看

There is a Application Directory VI under the File Constants pallette that will give you the path of the running vi(.exe).

 

----

Returns the path to the directory containing the application.

If you call this VI from a stand-alone application or shared library, this VI returns the path to the folder containing the stand-alone application or shared library.

If you call this VI from the development environment and the VI is loaded in a LabVIEW project file (.lvproj), this VI returns the path to the folder containing the project file. If the project is not saved, this VI returns <Not a Path>.

If the top-level VI is not loaded in a project, the VI returns the path to the directory containing the top level VI. If the VI is not saved to disk, this VI returns <Not a Path>.

----

0 项奖励
2 条消息(共 9 条)
10,388 次查看

As noted, the Application Directory function will return to you the application's directory, i.e., your executable's directory. Why are you trying to get the location of the labview.exe file from your executable? There's no guarantee that the LabVIEW development environment will even be installed on a target computer, since the built executable uses the LabVIEW Run-Time engine, not the LabVIEW development environment.

3 条消息(共 9 条)
10,367 次查看

I would need the folder/directory of Labview.exe to copy a folder that provides a custom functionality to the installed Labview version.

So is there actually a simple way of getting it instead of scanning through the local volumes and folders until you find it?

0 项奖励
4 条消息(共 9 条)
10,028 次查看

@zedtwitz wrote:

I would need the folder/directory of Labview.exe to copy a folder that provides a custom functionality to the installed Labview version.

So is there actually a simple way of getting it instead of scanning through the local volumes and folders until you find it?


I would recommend getting VI Package Manager for that.  With it, you can build up a package and install it on each version of LabVIEW you have installed.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 项奖励
5 条消息(共 9 条)
10,018 次查看

Thanks for your reply. In the meantime I have found also another possibilty to get the path by using the "VI Library" Function that returns the path to the 'vi.lib' file that usually located in the same folder as 'Labview.exe'.


@crossrulz wrote:

I would recommend getting VI Package Manager for that.  With it, you can build up a package and install it on each version of LabVIEW you have installed.


 

0 项奖励
6 条消息(共 9 条)
9,995 次查看

An even easier way, if you are trying to run this in Development mode (as opposed to "as an executable", is to simply drop an Invoke node and ask for the Directory Path.

Where is LabVIEW.png

On my machine, Application:Name is "LabVIEW.exe", and Application:Directory Path is C:\Program Files (x86)\National Instruments\LabVIEW 2012.

 

BS

7 条消息(共 9 条)
9,964 次查看

@D60 wrote:

Hi!

 

How can I get the Installed LabVIEW.exe or labview palette path from exe?

(exe is created in LabVIEW)

 

Thanks


oz

 

 

 

0 项奖励
8 条消息(共 9 条)
8,817 次查看

@D60 wrote:

Hi!

 

How can I get the Installed LabVIEW.exe or labview palette path from exe?

(exe is created in LabVIEW)

 

Thanks


OZ

0 项奖励
9 条消息(共 9 条)
8,816 次查看