<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,<br>
      <br>
      I was trying to create an Xcos module for scilab. I used parts of
      the skeleton Toolbox, provided with scilab, in order to get
      started.<br>
      I am able to create an own toolbox in Xcos, and add 2 Operators to
      it. But I can't edit the svg files, to adapt the in plan apperace
      or the input/output layout. Plus I kinda feel that the linkage
      between the modules is a bit beyond my grasp. I thought, that when
      you build it and include a "TBX_SUM_sci" to the lst, it will use
      the "TBX_SUM_sci" pictures, and the "TBX_SUM_sci.sci" macro file
      (with the "TBX_SUM_sci" function) to provide the Interface
      handler. Well. It seems, I can't make scilab execute the code
      provided in there.  Plus one Symbol  (SimuGen) always returns
      whenever I try to open It's gui :<br>
       matrix: Input and output matrices must have the same number of
      elements.<br>
      <br>
       With input arguments, return / resume expects output arguments.<br>
      <br>
      Whereas the other one does not anything. Both have xxx_sim.sci
      filed+functions (wich now do the same, due to testing..).<br>
      <br>
      No matter what I do, I can switch the symbols at best....<br>
      <br>
      I build them with the builder.sce file, which calls the
      buildmacros, which builds<br>
      <br>
      function buildmacros()<br>
          macros_path = get_absolute_file_path("buildmacros.sce");<br>
      <br>
          blocks = ["TBX_SUM_sci", "SimuGen"];<br>
      <br>
          tbx_build_macros(TOOLBOX_NAME, macros_path);<br>
          tbx_build_blocks(toolbox_dir, blocks);<br>
          tbx_build_pal_loader(TOOLBOX_TITLE, blocks, toolbox_dir,
      macros_path)<br>
      endfunction<br>
      <br>
      whereas SimuGen.sci (Always throws those errors, regardless of
      what I do).<br>
      <br>
      and TBX_sum_sci.sci (always does nothing, regardless of what I
      do).<br>
      <br>
      (Yes, I even tryed copying the Random number generator function
      into it)<br>
      Of course, loading happens with the standart loader (and the
      etc/st_regelstrecke.start file). Which has the check for already
      loaded toobox deactivated, atm.<br>
      <br>
      So, my question is, where do I need to look for clues, on what is
      going wrong?<br>
      I suspect the linkage between symbols and code being broken. But
      where?<br>
      Or knows anyone if there is somewhere any tutorial on how to add
      an Xcos module? I haven't found any so far.<br>
      And Yes, currently everything is handled inside those macro files.
      No external gateways or such stuff used.<br>
      <br>
      Juast noticed: if I load the skeleton toolbox afterwards, (Which
      has the TBX_SUM_sci Module), their TBX_SUM_sci Module will open
      the Random module (which code is also located inside my attempt of
      the TBX_SUM_sci symbol).<br>
      <br>
      Scilab 6.0.0 Release,<br>
      Windows 7 x64<br>
      MSVC 10 compiler</p>
    <p>As little code as possible is provided, due to email size
      reasons. If someone needs more code to see, what is going wrong,
      just ask.<br>
    </p>
    Dear moderator: the old mail of that sort can be discarded, if not
    already done so.<br>
    <div class="moz-signature">-- <br>
      <font face="Helvetica, Arial, sans-serif" size="-1"> Mit
        freundlichen Grüßen,<br>
      </font>
      <font face="Helvetica, Arial, sans-serif" size="-1"><br>
        i. A. Sebastian Hacker<br>
        Dipl.-Ing. (BA)<br>
        Forschung & Entwicklung<br>
      </font>
      <font face="Helvetica, Arial, sans-serif" size="-1"><br>
        STÖRK-TRONIC Störk GmbH & Co. KG<br>
        Untere Waldplätze 6<br>
        D-70569 Stuttgart<br>
        Tel: +(49) 711 68661 55<br>
        Fax: +(49) 711 68661 44<br>
      </font>
      <font face="Helvetica, Arial, sans-serif" size="-1"><a
          href="http://www.stoerk-tronic.com/">www.stoerk-tronic.com</a><br>
      </font>
    </div>
  </body>
</html>