06-23-2021 04:06 AM
Hey everyone,
I have the following VI in one of the projects I am trying to work on. It is loading a configuration parameters for a camera. This VI comes as preconfigured from the manufacturer, but it uses this File Dialogue Express VI, which will prompt always to select the .ini file neede.
I want to remove it and load the file automatically on VI startup. So far so good, but how do I load the file in case when this VI will be built as an application and the application installed on a different PC? I am not familiar with Application builder, but how to include this configuration .ini into the installation folder, so that it can be loaded always properly when used on different computers?
P.S. The actual .ini manipulation is in the sub-VI load from ini.
Solved! Go to Solution.
06-23-2021 04:13 AM
Hi grumpy,
@grumpy_numpy wrote:
I am not familiar with Application builder, but how to include this configuration .ini into the installation folder, so that it can be loaded always properly when used on different computers?
I see two simple options:
06-23-2021 04:17 AM
Hey Gerd,
I love your solutions! Always so simple. Thanks a lot!
I will build it quickly and test asap.
bests
Georg
06-23-2021 04:46 AM
Hey Gerd,
getting the following error:
I used the Current VI path VI.
06-23-2021 04:51 AM
Hi grumpy,
@grumpy_numpy wrote:
I used the Current VI path VI.
Why do you do that? (And why don't you use BuildPath to build a path???)
Did you verify the path which is created this way? It seems (very) unreasonable as it is shown in that error message…
Using CurrentVIPath is wrong: use the ApplicationDir file constant to get the path of the executable!