I'm trying to read data from a ccd camera (Apogee Alta)
using Matlab (R2007b) and a COM(ActiveX)-DLL provided by the
manufacturer. The DLL provides a method "GetImage(long
pImageBuffer)" which according to the camera software
documentation "returns a pointer to a previously-allocated
region of memory (allocated by the calling application) that
will be filled with image data". Matlab recognizes this
method as "GetImage = void GetImage(handle, int32)".
The problem is: I have no idea how to pass the
pointer/int32. I've tried all kinds of stuff to call
GetImage, for example:
* a = zeros(2048); libpointer ('int32Ptr',a); h.GetImage(b);
* a = zeros(2048); h.GetImage(a(1));
but nothing seems to work, and the error messages didn't
help either.
Does anybody have an idea what I have to do here?
Thanks a lot!
Chris
"Susanne Fiebig" <s-sizar...@vf.uni-konstanz.de> wrote in message <fv9l25$ioo$1...@fred.mathworks.com>...