LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating executable - How to add config-ini?

Solved!
Go to solution

Hello,

i created a new GUI which reads at startup a config.ini file.

In the vi i specified the path to this ini-file to be in the same path as thecalling-vi.

Will this also work if i create an executable? So that the ini-file is searched in the same path as the executable?

 

Thanks

0 Kudos
Message 1 of 4
(2,342 Views)
Solution
Accepted by topic author OnlyOne

You should use the "ApplicationDirectory" function to specify the path to the config-file.

This will work in the EXE as during development as long as you regard the rules for this function. Please refer to the LV help to get a detailed information on this.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 4
(2,338 Views)

This is working. Thx.

 

Another question:

How and where can i specify the size of the exe-windows?

The starting-vi is set as window-mode = Dialog, i thought now the exe-file comes up in the same size as the vi was saved the last time?

0 Kudos
Message 3 of 4
(2,329 Views)

Solved: I had to set the "Window Size" in the vi-options.

0 Kudos
Message 4 of 4
(2,321 Views)