<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Le 11/01/11 17:31, Adrien Vogt-Schilb a écrit :
    <blockquote cite="mid:4D2C85CA.7040907@centre-cired.fr" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      I am experiencing the same thing: being lost in the toolbox
      skeleton. <br>
    </blockquote>
    Good to know I am not the only one.<br>
    I really started to feel dumb... I have been wandering with Scilab
    since 2.something and for the first time I am really lost.<br>
    <blockquote cite="mid:4D2C85CA.7040907@centre-cired.fr" type="cite">
      <br>
      I also find that typing "help api_scilab" does not help me at all
      right now. And i just understood today (thanks to allan's mail)
      that toolboxes is the modern way of doing what i do with call.<br>
    </blockquote>
    Yep, I just understood that yesterday.<br>
    <blockquote cite="mid:4D2C85CA.7040907@centre-cired.fr" type="cite">
      <br>
      For now i am still using ilib_for_link and call, because of the
      very effective help of ilib_for_link, which does provide a
      complete example.<br>
      <br>
      If anyone happens to have some guidelines, it would be very
      helpfull to make a wiki i think.<br>
    </blockquote>
    That's exactly what I was thinking about.<br>
    Is there anyone from the consortium who can provide us with some
    guidelines on the what-to-do and what-not-to-do when trying to build
    a primitive? <br>
    <blockquote cite="mid:4D2C85CA.7040907@centre-cired.fr" type="cite">
      <br>
      Le 11/01/2011 17:10, Antoine Monmayrant a écrit :
      <blockquote cite="mid:4D2C80EB.7020604@laas.fr" type="cite">Le
        11/01/2011 16:55, Allan CORNET a écrit : <br>
        <blockquote type="cite">Hi, <br>
          <br>
          See help about api_scilab to write a primitive <br>
          <br>
          You can also see example in toolbox_skeleton 
          SCI/contrib/toolbox_skeleton <br>
        </blockquote>
        Well, I didn't mention it, but I downloaded this module and I
        opened all the files I found and I was lost. <br>
        Basically I don't know where to start and which file does what
        and what I should modify to adapt to my c code. <br>
        <blockquote type="cite">Allan <br>
          <br>
          <br>
          <br>
          -----Message d'origine----- <br>
          De : Antoine Monmayrant [<a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="mailto:antoine.monmayrant@laas.fr">mailto:antoine.monmayrant@laas.fr</a>]
          <br>
          Envoyé : mardi 11 janvier 2011 16:47 <br>
          À : <a moz-do-not-send="true"
            class="moz-txt-link-abbreviated"
            href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
          <br>
          Objet : [scilab-Users] C->Scilab: Now I'm lost and need
          some directions <br>
          <br>
          Hi all, <br>
          <br>
          I am fighting to call some C code from within Scilab, or more
          precisely to <br>
          add a primitive to Scilab using some C code I wrote. <br>
          I have a working C code and I managed to link it to Scilab by
          using <br>
          "ilib_for_link". <br>
          It works, no problem. <br>
          Now I would like to bullet-proof it, that is to get it to work
          like a real <br>
          scilab primitive. <br>
          For example, at the moment, if I try to open a file that do
          not exist (from <br>
          within my C code), I just kill my Scilab session. <br>
          This is due to the way the error is treated in my C code. <br>
          I would prefer to get a normal Scilab error: "!--error 241,
          File does not <br>
          exist". <br>
          In the end, I would like to handle all the usual scilab error
          (wrong number <br>
          of arguments, wrong type, ...) gracefully. <br>
          What should I do? <br>
          I found bits and pieces here and there about how to link, what
          the interface <br>
          should be like, how to use call, ... but I can't put the
          pieces together to <br>
          get a big picture of what I should do. <br>
          I found "intersci" but it is obsolete. I found some articles
          but they are <br>
          outdated ( <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="http://www.saphir-control.fr/articles/lm15/article.html">http://www.saphir-control.fr/articles/lm15/article.html</a>
          ). <br>
          Does anyone know a proper tutorial or *complete* example (
          c_source, <br>
          interface_source, build and example of use) on the subject? <br>
          <br>
          Thank you in advance, <br>
          <br>
          Antoine <br>
          <br>
          <br>
          <br>
        </blockquote>
        <br>
        <br>
      </blockquote>
      <br>
      <br>
      <div class="moz-signature">-- <br>
        <style>
<!--
  p
        {margin:0pt;
           color:teal;
           font-family:"Cambria Math"
        font-size:12.0pt;
        }
-->
</style>
        <p><b>Adrien Vogt-Schilb</b></p>
        <p>Research Fellow</p>
        <p><a moz-do-not-send="true" a=""
            href="mailto:vogt@centre-cired.fr" style="text-decoration:
            none; color: teal;">vogt@centre-cired.fr</a></p>
        <p>Tel: (+33) 1 43 94 73 72</p>
        <p>Fax: (+33) 1 43 94 73 70</p>
        <table style="border: medium none; margin-left: 1pt; margin-top:
          4pt;" cellspacing="0">
          <tbody>
            <tr>
              <td style="padding: 0pt;">
                <p><img src="cid:part1.05020301.08080704@laas.fr"
                    alt="CIRED" width="54"></p>
              </td>
              <td style="padding: 0pt 7pt;" valign="middle">
                <p style="font-size: 10pt;">45 bis, Av de la Belle
                  Gabrielle</p>
                <p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
                <p style="font-size: 10pt;"><a moz-do-not-send="true"
                    href="http://www.centre-cired.fr/" style="color:
                    teal;">http://www.centre-cired.fr/</a></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p> </p>
      </div>
    </blockquote>
    <br>
  </body>
</html>