Can save the configuration when running VI, but not file not when running EXE

Hello

I have attached a file zip containing a LabVIEW project as well as a built EXE.

The program will load up the numerical value of the file config in both cases, but it will only write the configuration file when it is executed as a VI, not as an executable file. If I don't use the computer of JKI State, I do not think I see this problem, so I think it's the order in which the program quits? I tried to disable the Panel before closing, but that did not always help.

Reading configuration file is made in the case of "Data - initialize" and the config file for writing in the case of 'Cleaning up' -.

It seems that the difference between the run-time and development environment behavior is the Close event of front panel. It's in Dev mode, you do not go to the front > close State, but you don't have at run time. Try to run your cleanup command before the command close to see if that fixes it. If you close the front panel, the values could be recovered, VI OpenG has not all the values to get more because they have left the memory.

If the Panel should be closed more quickly, but you need to hide the front panel without the closing, you can use the FP. Open invoke node with a contribution of the State of "hidden". This will hide the front panel while keeping open and then the Panel will always close end when your application terminates.

Tags: NI Software

Similar Questions

Maybe you are looking for