From: Marcus on
Hello,

I'm trying to use embedded Matlab in combination with an xPC. In my embedded Matlab-function I use commands like 'int2str'. I declare these functions by using the eml.extrinsic('int2str') command.
Unfortunately it occurs an error. Is there a possibility to use commands like these with embedded-Matlab-Function with an xPC?

Thanks for your help.
From: Michael Hosea on
Well, anything you declare extrinsic has to run in MATLAB, so it has to be a
mex target.

If you're just converting numeric values into bytes to marshal them between
components, you can cast to an appropriate integer class and then use
TYPECAST to serialize and deserialize. TYPECAST is supported intrinsically
in Embedded MATLAB.
--
Mike


"Marcus " <mawalter(a)rhrk.uni-kl.de> wrote in message
news:hock1c$nbl$1(a)fred.mathworks.com...
> Hello,
>
> I'm trying to use embedded Matlab in combination with an xPC. In my
> embedded Matlab-function I use commands like 'int2str'. I declare these
> functions by using the eml.extrinsic('int2str') command.
> Unfortunately it occurs an error. Is there a possibility to use commands
> like these with embedded-Matlab-Function with an xPC?
>
> Thanks for your help.