<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I'm using Scilab 5.5.0 API in c++ code. I have the following code-<br><br><font size="2"><span style="font-family:monospace,monospace">sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddr);<br>if(sciErr.iErr)   <br>{<br> printError(&sciErr, 0);<br> return 0<br>}<br><br>sciErr = getListItemNumber(pvApiCtx, piAddr, &noItemList);<br>if(sciErr.iErr)<br>{<br> printError(&sciErr, 0);<br> sciprint("This variable is not a list");<br> return 0;<br>}<br>for( a= 1 ;a<=noItemList ; a++)<br>{   <br> sciErr = getMatrixOfDoubleInList(pvApiCtx, piAddr, a, &iRows, &iCols, &listItem);<br> if(sciErr.iErr)<br> {<br>  printError(&sciErr, 0);<br>  return 0;<br> }<br>}<br></span></font></div><div><font size="2"><span style="font-family:monospace,monospace"><br></span></font></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">This is part of a larger function. For the function call <span style="font-family:monospace,monospace">d=callOct(c)</span>,where c is an mlist (3D matrix),  I get the error<br><br>API Error:<br>    in getMatrixOfDoubleInList: Unable to get address of item #2 in argument #1<br>    in getMatrixOfDouble: Invalid argument type, double matrix expected<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">What am I doing wrong?<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">Shamika<br></font></span></div>