passing arrays to actxServer
I wrote a .dll in VB.net 2003 that I am calling from
Matlab as an actxServer. I am successful in passing most
parameters from Matlab to the methods of the .dll, but I
need to pass an array of double. When I create the arrays
in Matlab and then call the method that expects 2 arrays
of double and 2 strings, I get the following error:
??? Attempt to reference field of non-structure array.
History:
vi = actxServer('VILTC');
exp= vi.createExperiment(103007);
x = [ 1 2 3];
y = [ 4 5 6];
hist = exp.CreateHistoGram(x, y, 'X axis', 'Y axis');
??? Attempt to reference field of non-structure array.
This works when I call from a windows form based
application when I create array in code and then call the
CreateHistoGram method, but my users want to do this from
inside of Matlab.
thanks,
Faron
.
Relevant Pages
- Re: Segmentation fault when accessing function in a DLL
... You are passing a NULL pointer to the function 'USMC_Init' is that what the function expects or does it expect a pointer to a valid ... To pass a valid pointer initialize at least one field of the structure before passing it to USMC_Init. ... I am trying to use functions in a windows DLL for controlling stepper motor hardware. ... I read carefully the external interfacing section in Matlab help and related articles in several ... (comp.soft-sys.matlab) - Re: mXCreateNumericArray (Crashing program)
... > from matlab it crashes with "Out of memory. ... > just a 2D array and it still gives the same error.. ... > Below is my fortran file which i compile from matlab with mex cmsl4Interated. ... That way when the mex file returns MATLAB knows that there is nothing in those arrays. ... (comp.soft-sys.matlab) - Re: Absolute beginner vs. fuzzy logic
... into B) is readily available in MatLab. ... new +1-dimensional array. ... The graph showed how a certain mechanical system ... > each iteration. ... (comp.soft-sys.matlab) - Re: zero based arrays?
... array, even in Matlab, its just that Matlab is an interpreted ... Every programming language has things it does differently from every other ... first) element of the array. ... case you'll be writing in C or C++ and so you'll use the native indexing ... (comp.soft-sys.matlab) - Re: need help on building a "Next" button in GUI
... I am a new user of MatLab. ... When I selected the pictures, they did form an array FileName(), but my next_callback did not work at all. ... % hObject handle to figure ... function varargout = Image_OutputFcn ... (comp.soft-sys.matlab) |
|