<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <p>Hello Shamika,</p>
    <p>Are you sure that 'c' is a mlist? When I try you code with</p>
    <p> -->c=hypermat([2 3 2 2],1:24); callOct(c);</p>
    <p>with a dummy callOct, I get an early error in getListItemNumber:</p>
    <p>  "API error: in getListItemNumber: Invalid argument type, list
      expected"<br>
        "This variable is not a list"<br>
    </p>
    <p>Now wen I try with <br>
    </p>
    <p> -->c=list(1,2,3); callOct(c);<br>
    </p>
    <p>I don't get an error.<br>
    </p>
    <p>Hope this helps,</p>
    <p>Paul<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 10/05/2016 06:54 AM, Shamika Mohanan
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHbxmFRvGQKmV4artmv8MsTGzLx8hBZbNqvGGn12DA6Jq84izg@mail.gmail.com"
      type="cite">
      <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.68
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a></pre>
  </body>
</html>