|
"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.
|