Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building a Stand-Alone Application of a GUI

Status
Not open for further replies.

Aeroing

Aerospace
Apr 29, 2003
8
Hi!
I have made a GUI called "backlash" and the target of my figure also is called "backlash". When I build a stand-alone application of this file using the command "mcc -B sgl backlash.m" it creates the exe-file without any problem. When I execute the exe in matlab using "!backlash" the first that occurs is that an error window appears (about 200 times) saying: "The specified process was not found" and the title of the window is for example "dgebal, dgebd2, dlaruv, zgelq2......" after clicking 20 times on accept the GUI-Window is opened, but any of the button works. For example: if I click on a radiobutton called "foreplane_button" this error message appears:
"An error occured in the callback: Backlash('foreplane_button_callback',gcbo,[],guidata(gcbo))
The error message caught was: Reference to unknown function or variable 'Backlash' while evaluating expression"
The exe doesn't get the callbacks. What am i doing wrong?
I will be very grateful for your help.
 
Replies continue below

Recommended for you

I've heard that the compiler is a bit buggy when it comes to function names containing upper case letters. Try useing only lower case letters for your function names.

If your function is contained in a separate m-file and your calling it through a callback, it might help to add the function in your mcc call. Something like this

"mcc -B sgl backlash.m somefunction.m"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor