<?xml version="1.0" encoding="UTF-8"?>
<refentry version="5.0-subset Scilab" xml:id="ld_scilab2" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:db="http://docbook.org/ns/docbook">
  <info>
    <pubdate>$LastChangedDate: $</pubdate>
  </info>

  <refnamediv>
    <refname>ld_scilab2</refname>

    <refpurpose> Block for calling a computational function written in scilab</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Calling Sequence</title>

    <synopsis>[sim, out] = ld_scilab2(sim, events, in, comp_fn, include_scilab_fns, scilab_path)</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Description</title>

    <para><para></para>
<para> A nicer interface to scilab. (See modules/scilab/demo/scilab_demo.sce for an example)</para>
<para></para>
<para> in *+(invecsize) - input</para>
<para> out *+(outvecsize) - output</para>
<para> </para>
<para> out = calc_cmd</para>
<para></para>
<para></para>
<para> comp_fn - scilab function that is executed online. Prototype:</para>
<para>           function [block]=sample_comp_fn( block, flag )</para>
<para></para>
<para>           flags are: 1 calc outputs, 4 initialise, 5 terminate, 10 configure I/O</para>
<para></para>
<para>           For further details have a look at the example.</para>
<para></para>
<para> include_scilab_fns - unused for now. Set to list()</para>
<para> scilab_path - Path to scilab5 executable. Use &amp;quot;BUILDIN_PATH" if you do not have special needs.</para>
<para></para>
<para> NOTE: For now the flag &amp;quot;update states" is not called; Also a "reset states" flag is required.</para>
<para></para>
<para></para>
</para>

    
  </refsection>


</refentry>