03-25-2019 10:20 AM
I have a program that runs fine under the development system, but the executable won't run on the same computer, much less a target computer.
It appears to stop in the initialization section. The log file is not created and the Excel data does not appear to be read. I have verified that the Files folder is there and the Excel file is in it.
I enabled debugging, but that did not help. The only front panel button that works is the Stop button.
03-25-2019 10:43 AM
Put a path indicator on one of your paths and rebuild the application. You will find that the path in the executable is not what you think it is.
03-25-2019 11:00 AM
03-25-2019 01:35 PM
You are right. The “Current Path” is based on the location of the development VI, not the executable program.
I changed it to a fixed path and it works. Thanks for the help.
03-25-2019 01:54 PM
@StevenHunter wrote:
I changed it to a fixed path and it works. Thanks for the help.
I would strongly recommend to use the suggestions in my link above. A "fixed path" is fragile, because the VI will break as soon as the exe is moved elsewhere or even if somebody installs on a different drive letter.
03-25-2019 01:57 PM
I agree with altenbach. A fixed path is not the right solution. Take a look at the link that altenbach provided.