×
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

Launching Matlab GUIs from C++

Launching Matlab GUIs from C++

Launching Matlab GUIs from C++

(OP)
I apologize if this is a dumb question, I'm an admitted Matlab newbie.

I have an m-file which has a Matlab GUI I set up in GUIDE.  It has a graph and some buttons, it's working the way I want it to.  What I need to do, though, is to launch and initialize it from a C++ object, which will then update it every time the C++ object gets an update message.

I did compile my GUI m-file into the C version, but I can't seem to figure out how to get it to start up and initialize.

I've tried everything I can think of, and I can't seem to find a demo of doing something like this (I did find the Engine demo which was neat... but it doesn't launch a GUI, just a graph.  I'm doing some special things in my GUI that I want to be able to use).

So, in short, how do I launch a compiled Matlab GUI from a C++ program?

Thanks!

-fel

RE: Launching Matlab GUIs from C++

Compile your GUI into a M-Shared Dll using the Matlab Addin
for Visual C++.

Then in your C/C++ projects,you can initial the dll and call it.

But, as far as i know,this method does not work in any case, it just suit for some special case.

You must pay more attention to the calling formats , callback funtions and parameters transportation!

RE: Launching Matlab GUIs from C++

Hello,
       I,m attempting to try the exact same thing. I was wondering if you had any luck with it since you posted this message. What engine demo are you talking about? Where may I find it. Cheers.

R.K.

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