Thread Subject: Passing data to a GUI

Subject: Passing data to a GUI

From: Erik

Date: 15 May, 2008 21:44:02

Message: 1 of 1

Hello-

I am working on a project that involves using the Matlab
Compiler (MCR) to compile a .m file (in this case a MATLAB
GUI source file) into a shared library (a .h file). Once I
have a header file, I then have access from C to the main
MATLAB GUI function.

The problem is, I have not figured out how to successfully
send data to the functions declared in the .h file. The
following declaration is one found in the .h file for the
GUI produced by the MCR,

extern LIB_mainlib_C_API bool MW_CALL_CONV mlfMain(int
nargout , mxArray** varargout, mxArray* varargin);

According to documentation, data must be passed using 'cell
arrays' but whenever I try to send data to A SEPARATE
FUNCTION in the GUI file, I get errors (e.g. "handles" is
undefined). I know it is possible to access any function in
the GUI .m file from the main (top) function, but I have not
been successful.

Any help would be appreciated.
Thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
matlab compiler Erik 15 May, 2008 17:45:09
library Erik 15 May, 2008 17:45:09
gui Erik 15 May, 2008 17:45:09
mcr Erik 15 May, 2008 17:45:09
rssFeed for this Thread

Contact us at files@mathworks.com