22
22
* See the file ./license.txt
24
24
<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" version="5.0-subset Scilab" xml:id="EXPRESSION">
26
<refname>EXPRESSION</refname>
27
<refpurpose>Mathematical expression</refpurpose>
30
<title>Block Screenshot</title>
34
<imagedata fileref="../../../../images/palettes/EXPRESSION.png" align="center" valign="middle"/>
39
<refsection id="Contents_EXPRESSION">
40
<title>Contents</title>
44
<link linkend="EXPRESSION">Mathematical expression</link>
51
<xref linkend="Palette_EXPRESSION">Palette</xref>
56
<xref linkend="Description_EXPRESSION">Description</xref>
61
<xref linkend="Dialogbox_EXPRESSION">Dialog box</xref>
66
<xref linkend="Defaultproperties_EXPRESSION">Default properties</xref>
71
<xref linkend="Example_EXPRESSION">Example</xref>
76
<xref linkend="Interfacingfunction_EXPRESSION">Interfacing function</xref>
83
<refsection id="Palette_EXPRESSION">
84
<title>Palette</title>
88
<link linkend="Userdefinedfunctions_pal">User defined functions palette</link>
93
<refsection id="Description_EXPRESSION">
94
<title>Description</title>
96
The Expression block applies the specified Scilab expressions to its input.
99
<refsection id="Dialogbox_EXPRESSION">
100
<title>Dialog box</title>
104
<imagedata fileref="../../../gui/userdefinedfunctions_pal/en_US/EXPRESSION_gui.png" align="center" valign="middle"/>
114
<emphasis role="bold">number of inputs</emphasis>
116
<para> Block input can be a scalar or vector.</para>
117
<para> Properties : Type 'vec' of size 1 </para>
121
<emphasis role="bold">scilab expression</emphasis>
123
<para> The Scilab expression applied to the input.</para>
124
<para> Properties : Type 'vec' of size 1 </para>
128
<emphasis role="bold">use zero-crossing</emphasis>
130
<para> Select to enable zero crossing detection.</para>
131
<para> Properties : Type 'vec' of size 1</para>
135
<refsection id="Defaultproperties_EXPRESSION">
136
<title>Default properties</title>
140
<emphasis role="bold">always active:</emphasis> no
145
<emphasis role="bold">direct-feedthrough:</emphasis> yes
150
<emphasis role="bold">zero-crossing:</emphasis> yes
155
<emphasis role="bold">mode:</emphasis> yes
160
<emphasis role="bold">regular inputs:</emphasis>
163
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
166
<emphasis role="bold">- port 2 : size [1,1] / type 1</emphasis>
171
<emphasis role="bold">regular outputs:</emphasis>
174
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
179
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 0
184
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
189
<emphasis role="bold">continuous-time state:</emphasis> no
194
<emphasis role="bold">discrete-time state:</emphasis> no
199
<emphasis role="bold">object discrete-time state:</emphasis> no
204
<emphasis role="bold">name of computational function:</emphasis>
205
<emphasis role="italic">evaluate_expr</emphasis>
210
<refsection id="Example_EXPRESSION">
211
<title>Example</title>
213
The following example calculate an arbitrary expression with multiple different configuration or blocks.
214
<link type="scilab" linkend="scilab.xcos/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.xcos">
215
Open this example in Xcos
219
<latex>y=u(1) - u(2) - u(3)</latex>
224
<imagedata fileref="../../../examples/userdefinedfunctions_pal/en_US/EXPRESSION_diagram_en_US.png" align="center"/>
229
<imagedata fileref="../../../examples/userdefinedfunctions_pal/en_US/EXPRESSION_scope_en_US.png" align="center"/>
233
<refsection id="Interfacingfunction_EXPRESSION">
234
<title>Interfacing function</title>
237
<para> SCI/modules/scicos_blocks/macros/Misc/EXPRESSION.sci</para>
26
<refname>EXPRESSION</refname>
27
<refpurpose>Mathematical expression</refpurpose>
30
<title>Block Screenshot</title>
34
<imagedata fileref="../../../../images/palettes/EXPRESSION.png" align="center" valign="middle"/>
39
<refsection id="Contents_EXPRESSION">
40
<title>Contents</title>
44
<link linkend="EXPRESSION">Mathematical expression</link>
51
<xref linkend="Palette_EXPRESSION">Palette</xref>
56
<xref linkend="Description_EXPRESSION">Description</xref>
61
<xref linkend="Dialogbox_EXPRESSION">Dialog box</xref>
66
<xref linkend="Defaultproperties_EXPRESSION">Default properties</xref>
71
<xref linkend="Example_EXPRESSION">Example</xref>
76
<xref linkend="Interfacingfunction_EXPRESSION">Interfacing function</xref>
83
<refsection id="Palette_EXPRESSION">
84
<title>Palette</title>
88
<link linkend="Userdefinedfunctions_pal">User defined functions palette</link>
93
<refsection id="Description_EXPRESSION">
94
<title>Description</title>
96
The Expression block applies the specified Scilab expressions to its input.
99
<refsection id="Dialogbox_EXPRESSION">
100
<title>Dialog box</title>
104
<imagedata fileref="../../../gui/userdefinedfunctions_pal/en_US/EXPRESSION_gui.png" align="center" valign="middle"/>
114
<emphasis role="bold">number of inputs</emphasis>
116
<para> Block input can be a scalar or vector.</para>
117
<para> Properties : Type 'vec' of size 1 </para>
121
<emphasis role="bold">scilab expression</emphasis>
123
<para> The Scilab expression applied to the input.</para>
124
<para> Properties : Type 'vec' of size 1 </para>
128
<emphasis role="bold">use zero-crossing</emphasis>
130
<para> Select to enable zero crossing detection.</para>
131
<para> Properties : Type 'vec' of size 1</para>
135
<refsection id="Defaultproperties_EXPRESSION">
136
<title>Default properties</title>
140
<emphasis role="bold">always active:</emphasis> no
145
<emphasis role="bold">direct-feedthrough:</emphasis> yes
150
<emphasis role="bold">zero-crossing:</emphasis> yes
155
<emphasis role="bold">mode:</emphasis> yes
160
<emphasis role="bold">regular inputs:</emphasis>
163
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
166
<emphasis role="bold">- port 2 : size [1,1] / type 1</emphasis>
171
<emphasis role="bold">regular outputs:</emphasis>
174
<emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis>
179
<emphasis role="bold">number/sizes of activation inputs:</emphasis> 0
184
<emphasis role="bold">number/sizes of activation outputs:</emphasis> 0
189
<emphasis role="bold">continuous-time state:</emphasis> no
194
<emphasis role="bold">discrete-time state:</emphasis> no
199
<emphasis role="bold">object discrete-time state:</emphasis> no
204
<emphasis role="bold">name of computational function:</emphasis>
205
<emphasis role="italic">evaluate_expr</emphasis>
210
<refsection id="Example_EXPRESSION">
211
<title>Example</title>
213
The following example calculate an arbitrary expression with multiple different configuration or blocks.
214
<link type="scilab" linkend="scilab.xcos/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.xcos">
215
Open this example in Xcos
219
<latex>y=u(1) - u(2) - u(3)</latex>
224
<imagedata fileref="../../../examples/userdefinedfunctions_pal/en_US/EXPRESSION_diagram_en_US.png" align="center"/>
229
<imagedata fileref="../../../examples/userdefinedfunctions_pal/en_US/EXPRESSION_scope_en_US.png" align="center"/>
233
<refsection id="Interfacingfunction_EXPRESSION">
234
<title>Interfacing function</title>
237
<para> SCI/modules/scicos_blocks/macros/Misc/EXPRESSION.sci</para>