I am creating a custom module. In the Matlab constructor file I added the following code:
add_array(M,'H','float',single(S.HH),'const','wola window filter');
M.H.arrayHeap = 'AWE_HEAP_FAST2SLOW';
At this point I can see that M.H has the correct data.
The following C constructor code is created:
if ((S->H = (FLOAT32 *) awe_fwMalloc(320*sizeof(float), AWE_HEAP_FAST2SLOW, retVal)) == 0)
// Error code is in *retVal
Attaching VS to awe_server I can examine S->H, it is all zeros. How does the data get transferred from Matlab M.H to C S->H?