1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="standard_define">
4 <refname>standard_define</refname>
5 <refpurpose>Define a block from its interface as in Xcos editor.</refpurpose>
9 <synopsis>[block] = standard_define(sz, model, exprs)
13 <title>Arguments</title>
18 <para>xcos block.</para>
25 <varname>[height, width]</varname> size of the block.
33 The <link linkend="scicos_model"/> part of the block that define its simulation interface.
41 The <link linkend="scicos_block_graphics_exprs">graphics.exprs</link> default parameters expressions.
48 <title>Description</title>
50 This Scilab function is an helper used to allocate an Xcos block from an interfacing functions using a computed <link linkend="scicos_block_graphics">graphics</link> from a <link linkend="scicos_block_model">model</link> interface. It ensures that the ports match, that the size is similar to standard blocks and set the <link linkend="scicos_block_gui">gui</link> field.
53 <refsection role="see also">
54 <title>See also</title>
55 <simplelist type="inline">
57 <link linkend="scicos_block">scicos_block</link>
60 <link linkend="standard_outputs">standard_inputs</link>
63 <link linkend="standard_outputs">standard_outputs</link>
66 <link linkend="standard_origin">standard_origin</link>