Hi,
I have as issue with using the PipeWriteXxxArray API functions, as I connect to the ActiveX server from MATLAB and I try to send arrays.
With scalar inputs it works:
But how should I provide an array? I tried with both MATLAB cell array:
And MATLAB normal array:
But nothing. Also tried row vs column array, and tried other PipeWriteFloatArray (same issue).
What is the right way?
Thanks,
Luca
Hi Michal,
It's ok you know that as a user I like to pioneer features of this amazing tool.
After adding that command to my MATLAB script, I don't get the error anymore when invoking PipeWriteXxxArray from MATLAB.
However at target side, after calling FMSTR_PipeRead, the right amount of bytes is received, but only the first element of the array is received correctly, while further array elements contain corrupted data. I tried with PipeWriteUIntArray, PipeWriteFloatArray and with arrays of 2 and 5 elements.
I can do with just sending scalars for my current use case. Maybe take a note to look into this at some point in time.
Thanks for your quick response,
Luca
Yes, we will investigate and fix.
Thank you.
Michal
Hello Luca,
I don't think anyone has tried to exercise Array passing from Matlab before. Can you quickly try to set:
feature('COM_SafeArraySingleDim', 1)