Guidelines to create Windows Standalone Application from GUI.

3 ビュー (過去 30 日間)
Rishi
Rishi 2012 年 9 月 19 日
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.

回答 (1 件)

Robert Cumming
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.
  1 件のコメント
Rishi
Rishi 2012 年 9 月 19 日
Thanks Robert...I have resolved the issue.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by