Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Error while using matlab compiler

Subject: Error while using matlab compiler

From: rakshit Kothari

Date: 27 Apr, 2012 17:24:09

Message: 1 of 4

Hello, I have the R2011a MATlab release, and while converting my code to a stand alone application using mcc, I get the following warnings:

Warning: an error occurred while parsing class uimgr.uiexplorer: Undefined function or method 'findclass' for input arguments of type 'double'.
In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uiitem\schema.p>schema at 138 In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uimenu\schema.p>schema at 12 Warning: an error occurred while parsing class uimgr.uiitem: Invalid data type. > In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uimenu\schema.p>schema at 12 Warning: an error occurred while parsing class uimgr.uimenu: Invalid superclass handle.

My code does not take inputs, but it does call .m files as functions - which shouldn't be a problem because the gui of matlab compiler is quite simple, all I did was add the main calling file in the main file section and the called functions in the shared resources/helper files section.

What is the reason behind this error? the compiler successfully builds a .exe file but I don't get my output while running the application. My code uses the following toolboxes:

Computer vision toolbox
Neural network toolbox

I would be grateful if someone could help me out!

regards,
Rakshit

P.S - My program also calls saved variables in .mat files using the load function! Also could someone give me a link to the documentation of mcc? I wish to know all the functions mcc supports and can convert it to .exe

Subject: Error while using matlab compiler

From: Navan Ruthramoorthy

Date: 30 Apr, 2012 03:37:06

Message: 2 of 4

"rakshit Kothari" <rak108@gmail.com> wrote in message <jneknp$1la$1@newscl01ah.mathworks.com>...
> Hello, I have the R2011a MATlab release, and while converting my code to a stand alone application using mcc, I get the following warnings:
>
> Warning: an error occurred while parsing class uimgr.uiexplorer: Undefined function or method 'findclass' for input arguments of type 'double'.
> In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uiitem\schema.p>schema at 138 In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uimenu\schema.p>schema at 12 Warning: an error occurred while parsing class uimgr.uiitem: Invalid data type. > In C:\Program Files\MATLAB\R2011a\toolbox\shared\spcuilib\@uimgr\@uimenu\schema.p>schema at 12 Warning: an error occurred while parsing class uimgr.uimenu: Invalid superclass handle.
>
> My code does not take inputs, but it does call .m files as functions - which shouldn't be a problem because the gui of matlab compiler is quite simple, all I did was add the main calling file in the main file section and the called functions in the shared resources/helper files section.
>
> What is the reason behind this error? the compiler successfully builds a .exe file but I don't get my output while running the application. My code uses the following toolboxes:
>
> Computer vision toolbox
> Neural network toolbox
>
> I would be grateful if someone could help me out!
>
> regards,
> Rakshit
>
> P.S - My program also calls saved variables in .mat files using the load function! Also could someone give me a link to the documentation of mcc? I wish to know all the functions mcc supports and can convert it to .exe

Hi Rakshit,

The errors you are seeing can be ignored. How do you return your outputs from your MATLAB code? When you run your deployed application do you see any error? You can see documentation for MATLAB Compiler support at
http://www.mathworks.com/products/compiler/compiler_support.html

Regards
Navan

Subject: Error while using matlab compiler

From: rakshit Kothari

Date: 30 Apr, 2012 04:07:07

Message: 3 of 4

Hi Navan,

well my code doesn't give a command line output as such, the output is a figure window where the face is detected and recognized. wait i can post some of that code here. when i run the .exe by double clicking or through CMD, my webcam starts, and just stops, with no noteworthy outputs.

htxtins=vision.TextInserter(identity);
    htxtins.Color=[255,255,255];
    htxtins.Location=[temp(4) temp(3)];
    j=step(htxtins,Picture);
    figure(1)
    imshow(j)

this is the figure window which should give my final output. I just figured maybe those warnings have something to do with the error? According to the link you shared for me (thanks for that by the way!) my code is perfectly compatible with all the functions I have used.
Would it help you if i posted my code? or perhaps mailed it to you?

rakshit

Subject: Error while using matlab compiler

From: Navan Ruthramoorthy

Date: 30 Apr, 2012 18:38:07

Message: 4 of 4

"rakshit Kothari" <rak108@gmail.com> wrote in message <jnl35b$qkv$1@newscl01ah.mathworks.com>...
> Hi Navan,
>
> well my code doesn't give a command line output as such, the output is a figure window where the face is detected and recognized. wait i can post some of that code here. when i run the .exe by double clicking or through CMD, my webcam starts, and just stops, with no noteworthy outputs.
>
> htxtins=vision.TextInserter(identity);
> htxtins.Color=[255,255,255];
> htxtins.Location=[temp(4) temp(3)];
> j=step(htxtins,Picture);
> figure(1)
> imshow(j)
>
> this is the figure window which should give my final output. I just figured maybe those warnings have something to do with the error? According to the link you shared for me (thanks for that by the way!) my code is perfectly compatible with all the functions I have used.
> Would it help you if i posted my code? or perhaps mailed it to you?
>
> rakshit

Hi Rakshit,

Can you post your code here? If possible can you replace webcam source in your code with either a video file reader object or a static image.

Regards
Navan

Tags for this Thread

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.

Contact us