Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Launching Matlab GUIs from C++

Status
Not open for further replies.

Fel

Computer
May 9, 2003
1
US
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
 
Replies continue below

Recommended for you

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!
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top