Standalone compilation and use of GUI app

2 views (last 30 days)
EB
EB on 12 Aug 2020
Answered: Rik on 12 Aug 2020
Hi,
I am using a standalone app developed with GUI. After the app is compiled, I have done tests with the application found in for redistribution only folder. The app is supposed to read and take the data from an external .txt file that is usually placed in the same folder as the app itself (for redistribution only folder).
In the process of compiling the standalone app within the matlab compiler, I have added this .txt file file to step: files necessary for your application to run.
Now, if I want to use a different .txt file, with different input numbers, it seems like after running the app, the final results I get are not obtained by using the most recent .txt file. Instead the results are for that .txt file that was included within the compilation process.
Is this normal to happen? Any thoughts on this would be extremely helpful.
Thank you
EB

Answers (1)

Rik
Rik on 12 Aug 2020
Yes. You asked Matlab to include the txt file, so it did. If you don't want to include it in the packaged app, you shouldn't add it as a required file, even if on another level the file is required.
To explain it in a different way: your program may require manual input to be valid, but that is not a requirement for your program to start without fatal errors. Incorrect input should be dealt with in the program itself, not by the compiler.

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!