Guidelines to create Windows Standalone Application from GUI.
조회 수: 1 (최근 30일)
이전 댓글 표시
I have written a Matlab GUI for solving a variant of TSP based on 5 in input variables. It has two pushbuttons - start and exit. When the program starts execution, it asks for some additional inputs and we need to import two excel files - customer locations and revenue. The final output is a graph along with some statistics. (Statistics ToolBox not used). This is how I created the Windows Standalone Application (WSA).
1) Opened Deploytool, gave my project a name and selected WSA. 2) I selected my code as main file. For shared files, I selected the .fig file and a Matlab function which does the calculation. 3) Gave the command to build. 4) Once that is done, I click on Package and chose the option to embed MCR. 5) After packaging is done, I click on .exe file and chose the option to open outside Matlab.
It takes a few seconds to start the application. I can type in 5 inputs required to start the program. But when I click on start pushbutton, it produces an error. Since I am doing this for the first time, I do not know how to see error in WSA. But it produces a specific beep which indicates to me that there is error somewhere. When I click on exit - it closes the GUI as expected.
I will appreciate if some one can tell me the correct procedure to build WSA and how to view WSA generated errors.
I am using Matlab R2011a and MCR 7.15.
Thanks.
댓글 수: 0
답변 (1개)
Robert Cumming
2012년 9월 19일
can you not just launch the current exe from a DOS prompt to see the error?
Start - Run - CMD
then cd to your directory and launch the exe - your error will be displayed in the dos prompt.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!