Thread Subject:
Compiling preview function

Subject: Compiling preview function

From: Peter Russo

Date: 1 Jul, 2009 15:32:01

Message: 1 of 4

I am currently trying to compile my code into a standalone function. Everything works great, except for when it tries to call the preview() function. I get the error:

??? Error using ==> imaqdevice.preview at 179
PREVIEW(OBJ) is not permitted in deployed mode.

I have heard that in previous versions of MATLAB preview could not be compiled, but I have the newest MATLAB (R2009a) and Image Acquisition toobox(3.3). According to this site: http://www.mathworks.com/products/compiler/compiler_support.html everything in the image acquisition toolbox except for "imaqtool" should be able to be able to be compiled. Any idea why this might be happening?

P.S. I used "deploytool" to compile it, but I don't see why that would make a difference, it uses mcc itself.

Subject: Compiling preview function

From: Peter Russo

Date: 7 Jul, 2009 19:59:02

Message: 2 of 4

"Peter Russo" <peter.russo@gmail.com> wrote in message <h2fvhh$mag$1@fred.mathworks.com>...
> I am currently trying to compile my code into a standalone function. Everything works great, except for when it tries to call the preview() function. I get the error:
>
> ??? Error using ==> imaqdevice.preview at 179
> PREVIEW(OBJ) is not permitted in deployed mode.
>
> I have heard that in previous versions of MATLAB preview could not be compiled, but I have the newest MATLAB (R2009a) and Image Acquisition toobox(3.3). According to this site: http://www.mathworks.com/products/compiler/compiler_support.html everything in the image acquisition toolbox except for "imaqtool" should be able to be able to be compiled. Any idea why this might be happening?
>
> P.S. I used "deploytool" to compile it, but I don't see why that would make a difference, it uses mcc itself.

Does anyone have any ideas? I am currently trying to figure out how to do this using other functions, but nothing works nearly as well as preview would

Subject: Compiling preview function

From: Peter Russo

Date: 8 Jul, 2009 15:04:03

Message: 3 of 4

"Peter Russo" <peter.russo@gmail.com> wrote in message <h309e6$3j2$1@fred.mathworks.com>...
> "Peter Russo" <peter.russo@gmail.com> wrote in message <h2fvhh$mag$1@fred.mathworks.com>...
> > I am currently trying to compile my code into a standalone function. Everything works great, except for when it tries to call the preview() function. I get the error:
> >
> > ??? Error using ==> imaqdevice.preview at 179
> > PREVIEW(OBJ) is not permitted in deployed mode.
> >
> > I have heard that in previous versions of MATLAB preview could not be compiled, but I have the newest MATLAB (R2009a) and Image Acquisition toobox(3.3). According to this site: http://www.mathworks.com/products/compiler/compiler_support.html everything in the image acquisition toolbox except for "imaqtool" should be able to be able to be compiled. Any idea why this might be happening?
> >
> > P.S. I used "deploytool" to compile it, but I don't see why that would make a difference, it uses mcc itself.
>
> Does anyone have any ideas? I am currently trying to figure out how to do this using other functions, but nothing works nearly as well as preview would

Ok, I got it. "preview(obj,himage)" will compile, but "preview(obj)" won't. You have to specify a handle if you wan't to compile the code.

Subject: Compiling preview function

From: Mehebuba

Date: 1 Jul, 2013 05:04:14

Message: 4 of 4

"Peter Russo" <peter.russo@gmail.com> wrote in message <h2fvhh$mag$1@fred.mathworks.com>...
> I am currently trying to compile my code into a standalone function. Everything works great, except for when it tries to call the preview() function. I get the error:
>
> ??? Error using ==> imaqdevice.preview at 179
> PREVIEW(OBJ) is not permitted in deployed mode.
>
> I have heard that in previous versions of MATLAB preview could not be compiled, but I have the newest MATLAB (R2009a) and Image Acquisition toobox(3.3). According to this site: http://www.mathworks.com/products/compiler/compiler_support.html everything in the image acquisition toolbox except for "imaqtool" should be able to be able to be compiled. Any idea why this might be happening?
>
> P.S. I used "deploytool" to compile it, but I don't see why that would make a difference, it uses mcc itself.

Hi I know this is a very old post..but I am having same problem while using R2013a. any cllue how to solve it?

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
compile Peter Russo 7 Jul, 2009 16:04:04
preview Peter Russo 7 Jul, 2009 16:04:03
rssFeed for this Thread

Contact us