×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Building a Stand-Alone Application of a GUI

Building a Stand-Alone Application of a GUI

Building a Stand-Alone Application of a GUI

(OP)
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.

RE: Building a Stand-Alone Application of a GUI

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"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources