Added simulation time for some diagrams.
Some general improvements.
Change-Id: I6ec7fad3a3942c2185303fdbd1c67327bfe85f8a
CLSS_1.png=6e6fe1f3eb8bb00d2550d56b6db20aa1
CONVERT_1.png=98a6e3205880021275a88f5bcaa3385c
CONVERT_fr_FR_1.png=45226b45034cd4992b8a5e8ee7ff5d79
+CSCOPE_1.png=2d909fe2bcc644ed0330ec8bbb0318d2
Counter_1.png=a88328a6ccb0eccd4ed8bf4a5bbb82ee
DEADBAND_1.png=20a32eccd368a2c1db61d29c84129eff
DEADBAND_fr_FR_1.png=1d45f2e6ad98c824be4205cb4f5ea1e1
INTRPLBLK_f_1.png=33cb18a7088876691af4f5917a228ae0
IN_f_1.png=14ebefc5c6f0a4168285be7f53de873e
JKFLIPFLOP_content_1.png=41633bba65cdd898d6d40657e606618f
+JKFLIPFLOP_fr_FR_1.png=12520fcc860ddc21378285d090a81964
LOGIC_1.png=fedbff23681192420b1d1b2780d716a3
LOGIC_fr_FR_1.png=61b39bb2fa0f137d7cdc7f857f1e1de9
LineSpec_1.png=3865808691b21c492ceb231a78009863
PID_2.png=ca84f21c8c54b33b1813441eec8f9f8f
PID_3.png=388ad02b0483aeda88a8b41dcf37ef5c
PlotSparse_1.png=89f28b0065018873360603a560d5f079
-RAMP_1.png=2e86edf2bbb1d70d50e7af41efac8c33
+RAMP_1.png=c23fa5d3551bbd0d62ed522a383f858b
REGISTER_1.png=b10b9eb56f4f302b40722fc37f90152
SAWTOOTH_f_1.png=10ee1db52ca7bf5c9a88f6af721493a6
SHIFT_1.png=39d393d5ed4e795dc2f6c90e0d3efd99
SRFLIPFLOP_1.png=bf5bf1af128d883fe210b34b77108187
SRFLIPFLOP_fr_FR_1.png=66fae8781f8aff2688d19345715c229d
STEP_FUNCTION_1.png=a0f3c8ffdd4693291dc1c322c9a02fc5
+STEP_FUNCTION_2.png=18359b7fac7dc5a8a2b2620d946b799d
Sfgrayplot_1.png=b5139a9e5e0fd480bbafa10a88be5787
Sfgrayplot_2.png=b5196dafdabb34691c6df65540b38f55
Sfgrayplot_3.png=154f16b80fbb104ad4f7140460301a3
This block generates an event on rising, falling or both edges of the input signal (depending on block parameter). A rising edge is a change in value from strictly negative to positive or zero, or a change in value from zero to strictly positive. A falling edge is the opposite.
</para>
<para>
- <note>
- Note that this block only generates an event if the input jumps due to an event. The generated event is synchronous with the event causing the jump. This block does not detect continuous-time zero-crossings.
- </note>
+ <note>
+ Note that this block only generates an event if the input jumps due to an event. The generated event is synchronous with the event causing the jump. This block does not detect continuous-time zero-crossings.
+ </note>
</para>
<para>
</para>
</itemizedlist>
</refsection>
<refsection id="Examples_freq_div">
- <title>Examples</title>
+ <title>Example</title>
<para>
The following example divides a frequency per three.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/events_pal/en_US/freq_div_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/events_pal/en_US/freq_div_en_US.zcos">
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/events_pal/en_US/freq_div_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
</refentry>
<title>Example</title>
<para>
Below a simple use case of the block.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/BITCLEAR_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/BITCLEAR_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/BITCLEAR_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_BITCLEAR">
<title>Example</title>
<para>
Below a simple use case of the block.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/BITSET_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/BITSET_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/BITSET_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_BITSET">
<title>Example</title>
<para>
This example shows the sign bit's propagation during a conversion from int8 to int16.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/CONVERT_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/CONVERT_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/CONVERT_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_CONVERT">
<para>
The following figure shows a simple use case of the DLATCH block with
its timing diagram.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/DLATCH_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/DLATCH_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
// overload messagebox to avoid the "no continuous states" messages
function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
btn=1;
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/DLATCH_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_DLATCH">
<title>Interfacing function</title>
<para>
In the following diagram, two decimal digit numbers are coded on an only byte.
The diagram decode the input to obtain two separate digits.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/EXTRACTBITS_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/EXTRACTBITS_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/EXTRACTBITS_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_EXTRACTBITS">
<para>
The goal of this example is to code two decimals digits in an only byte. It makes exactly the inverse work of the example of
the <link linkend="EXTRACTBITS">EXTRACTBITS</link> block.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/INTMUL_en_US.zcos">
- Open this example in Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/integer_pal/en_US/INTMUL_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../../../../examples/integer_pal/en_US/INTMUL_en_US.zcos"/>
- </imageobject>
- </mediaobject>
</refsection>
<refsection id="Interfacingfunction_INTMUL">
<title>Interfacing function</title>
</literal>
</emphasis>
outputs of counter.
- <link type="scilab" linkend="scilab.zcos/xcos/examples/integer_pal/en_US/JKFLIPFLOP_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.zcos/xcos/examples/integer_pal/en_US/JKFLIPFLOP_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/JKFLIPFLOP_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection role="see also" id="Seealso_JKFLIPFLOP">
<title>See also</title>
</emphasis>
are
generated by a binary counter.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/LOGIC_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/LOGIC_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/LOGIC_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
</refsection>
<refsection id="Interfacingfunction_LOGIC">
<para>
To better see the output change, set the parameter <emphasis>Real Time Scale</emphasis> to 0.5
in the <emphasis>Settings menu</emphasis> item of the <emphasis>Simulation menu</emphasis>.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/SHIFT_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/SHIFT_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/SHIFT_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
<para>
Below the details of the binary counter.
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata align="center" fileref="../../../../examples/integer_pal/en_US/SHIFT_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <para>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/SHIFT_internal_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata align="center" fileref="../../../../examples/integer_pal/en_US/SHIFT_internal_en_US.zcos"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
+ </para>
</refsection>
<refsection id="Interfacingfunction_SHIFT">
<title>Interfacing function</title>
<para>
The following example presents a typical anti-bouncing application of the SR flipflop. The
output graph shows the memory effect of the flipflop.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/SRFLIPFLOP_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/SRFLIPFLOP_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/en_US/SRFLIPFLOP_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_SRFLIPFLOP">
<title>Interfacing function</title>
<title>Example</title>
<para>
The following example translate the sine input signal to a different range and cut part of it.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/lookuptables_pal/en_US/INTRPLBLK_f_en_US.zcos">
- Open this example in Xcos.
- </link>
</para>
<para>
<latex>X=\{-1.0;-0.5;0;0.5;1.0\}\ Y=\{-6;-6;0;0;6\}</latex>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/lookuptables_pal/en_US/INTRPLBLK_f_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/lookuptables_pal/en_US/INTRPLBLK_f_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_INTRPLBLK_f">
<title>Interfacing function</title>
shown in the following figure, where you can see the use of the CLKINV_f block as event input of the internal
square wave generator.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/CLKINV_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKINV_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKINV_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/CLKINV_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKINV_f_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
<para>
The Super bloc below is mainly a frequency divider by 4, associated to an one event generation at time
<emphasis>
- <literal>t= 3 s</literal>
+ <literal>t = 3 s</literal>
</emphasis>
.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/CLKOUTV_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKOUTV_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKOUTV_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/CLKOUTV_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/CLKOUTV_f_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
resistor and the other for the ground. These inputs are connected to the external environment of the bloc via two INIMPL_f blocks numbered 1
and 2. The Super block output is connected via a <link linkend="OUTIMPL_f">OUTIMPL_f</link> block.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/INIMPL_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/INIMPL_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/INIMPL_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/INIMPL_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/INIMPL_f_en_US.zcos"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
<emphasis role="bold">Output port size</emphasis>
</para>
<para> An vector of two integers defining the expected
- signal dimensions ([#rows #columns]). By default this
- field is set to [-1 -2] which means that the
- dimensions are inherited from the upper level. It
- should be useful to assign fixed values for separate
- compilation of the super block (Code Generation
- ). </para>
+ signal dimensions ([#rows #columns]). By default this
+ field is set to [-1 -2] which means that the
+ dimensions are inherited from the upper level. It
+ should be useful to assign fixed values for separate
+ compilation of the super block (Code Generation
+ ).
+ </para>
<para> Properties : Type 'vec' of size -1.</para>
</listitem>
<listitem>
<emphasis role="bold">Output port type</emphasis>
</para>
<para> An integer defining the expected signal type.
- By default this
- field is set to 1 which means that the type
- is inherited from the upper level. It
- should be useful to assign a fix value for separate
- compilation of the super block (Code Generation
- ).</para>
+ By default this
+ field is set to 1 which means that the type
+ is inherited from the upper level. It
+ should be useful to assign a fix value for separate
+ compilation of the super block (Code Generation
+ ).
+ </para>
<para> Properties : Type 'vec' of size 1.</para>
</listitem>
-
+
</itemizedlist>
</refsection>
<refsection id="Defaultproperties_IN_f">
<refsection id="Example_IN_f">
<title>Example</title>
<para>
- In the following example the Super block is an amplitude modulator. The IN_f block is used as a modulation signal input. Its data type is defined by the input type of the gain block that is a scalar double data type.
+ In the following example the Super block is an amplitude modulator.
+ The IN_f block is used as a modulation signal input.
+ Its data type is defined by the input type of the gain block that is a scalar double data type.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/IN_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/IN_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/IN_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/IN_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/IN_f_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
</para>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/en_US/IN_f_en_US.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
+ <scilab:image>
+ <![CDATA[
+ importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/en_US/IN_f_en_US.zcos");
+ xcos_simulate(scs_m, 4);]]>
+ </scilab:image>
</refsection>
<refsection id="Interfacingfunction_IN_f">
<title>Interfacing function</title>
<para>
In the following example the Super block is a basic transistor switch.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/OUTIMPL_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/OUTIMPL_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/OUTIMPL_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/OUTIMPL_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/OUTIMPL_f_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
<para>
In the following example the Super block encloses two discontinuities. The OUT_f block is the non linear output signal.
</para>
- <para><link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/OUT_f_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/OUT_f_en_US.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/en_US/OUT_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/en_US/OUT_f_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/en_US/OUT_f_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
The following figure shows the output of the bloc :
<refsection id="Example_SELF_SWITCH">
<title>Examples</title>
<para>
- <link type="scilab" linkend="scilab.xcos/xcos/examples/signalrouting_pal/SELF_SWITCH_on_Example.zcos">
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/signalrouting_pal/SELF_SWITCH_on_off_Example.zcos">
<inlinemediaobject>
<imageobject>
- <imagedata align="center" fileref="../../../../examples/signalrouting_pal/SELF_SWITCH_on_Example.zcos" valign="middle"/>
- </imageobject>
- </inlinemediaobject>
- </link>
- </para>
- <para>
- <link type="scilab" linkend="scilab.xcos/xcos/examples/signalrouting_pal/SELF_SWITCH_off_Example.zcos">
- <inlinemediaobject>
- <imageobject>
- <imagedata align="center" fileref="../../../../examples/signalrouting_pal/SELF_SWITCH_off_Example.zcos" valign="middle"/>
+ <imagedata align="center" fileref="../../../../examples/signalrouting_pal/SELF_SWITCH_on_off_Example.zcos" valign="middle"/>
</imageobject>
</inlinemediaobject>
</link>
</refsection>
<refsection id="Example_CSCOPE">
<title>Single display scope example</title>
- <link type="scilab" linkend="scilab.xcos/xcos/tests/unit_tests/cscope.zcos">
- <inlinemediaobject>
- <imageobject>
- <imagedata align="center" fileref="../../../../tests/unit_tests/cscope.zcos" valign="middle"/>
- </imageobject>
- </inlinemediaobject>
- </link>
+ <para>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/sinks_pal/en_US/CSCOPE_en_US.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/sinks_pal/en_US/CSCOPE_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
+ </para>
+ <scilab:image><![CDATA[
+ importXcosDiagram(SCI + "/modules/xcos/examples/sinks_pal/en_US/CSCOPE_en_US.zcos");
+ xcos_simulate(scs_m, 4);
+ ]]></scilab:image>
</refsection>
<refsection id="Seealso_CSCOPE">
<title>See also</title>
<title>Example</title>
<para>
A simple example of CLOCK_c block event output.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/clock_c_en_US.zcos">
- Open this example in Xcos
- </link>
- .
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/clock_c_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/clock_c_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_CLOCK_c">
<title>Interfacing function</title>
<para>
This diagram shows the output of the block GENSIN_f for an amplitude value of 1.2 and an initial
phase offset of 90°.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/gensin_f_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/gensin_f_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/gensin_f_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_GENSIN_f">
<title>Interfacing function</title>
</refsection>
<refsection id="Example_GENSQR_f">
<title>Example</title>
- <para>This is a typical use of this block in context. This example should also alert the user about a specific behavior when linked to the same event its sink. <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/GENSQR_f_diagram_en_US.zcos">
- Open this exemple into Xcos
- </link>
+ <para>This is a typical use of this block in context.
+ This example should also alert the user about a specific behavior when linked to the same event its sink.
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/GENSQR_f_diagram_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/GENSQR_f_diagram_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
<para>
First the sink block is a <link linkend="CMSCOPE">scope</link> with a sample rate set to <emphasis>1 second</emphasis>. This parameter will affect the printed results of all the diagram branches.
</para>
<title>Exemple</title>
<para>
This diagram shows the Modulo_count usage as a quantized sawtooth generator application.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/modulo_count_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/modulo_count_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/modulo_count_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_Modulo_Count">
<title>Interfacing function</title>
<title>Example</title>
<para>
This diagram shows the use of RAMP block to obtain the response to a ramp signal of a first order's system defined by a transfer function.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/ramp_en_US.zcos">
- Open this example in Xcos
- </link>
- .
</para>
- <para/>
<para>
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/ramp_en_US.zcos">
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/RAMP_en_US.zcos">
<inlinemediaobject>
<imageobject>
- <imagedata fileref="../../../../examples/sources_pal/en_US/ramp_en_US.zcos" align="center" valign="middle"/>
+ <imagedata fileref="../../../../examples/sources_pal/en_US/RAMP_en_US.zcos" align="center" valign="middle"/>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/ramp_en_US.zcos");
+ </para>
+ <scilab:image><![CDATA[
+importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/RAMP_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_RAMP">
<title>Interfacing function</title>
</itemizedlist>
</refsection>
</refentry>
+
<para>
This diagram shows the output of the SAWTOOTH_f block with an event period of 2 seconds and an offset
of 1 second on event generation.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/sawtooth_f_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/sawtooth_f_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/sawtooth_f_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_SAWTOOTH_f">
<title>Interfacing function</title>
<para>
This diagram shows the use of the STEP_FUNCTION block to obtain the response to a step signal of
a first order's system defined by a transfer function.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/step_function_1_en_US.zcos">
- Open this example in Xcos
- </link>
- .
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/step_function_1_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/step_function_1_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Example_2_STEP_FUNCTION">
<title>Example 2</title>
<para>
- This diagram shows the use of STEP_FUNCTION to obtain four step signals
+ This diagram shows the use of STEP_FUNCTION to obtain four step signals.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/step_function_2_en_US.zcos">
- Open this example in Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/sources_pal/en_US/step_function_2_en_US.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/sources_pal/en_US/step_function_2_en_US.zcos" align="center"/>
- </imageobject>
- </mediaobject>
+ <scilab:image><![CDATA[
+importXcosDiagram(SCI + "/modules/xcos/examples/sources_pal/en_US/step_function_2_en_US.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
</refsection>
</refsection>
<refsection id="Interfacingfunction_STEP_FUNCTION">
<title>Example</title>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/TKSCALE_en_US.zcos">
- Open this example in Xcos
- </link>
- </para>
- <para/>
- <para>
- <link type="scilab" linkend="scilab.xcos/xcos/examples/sources_pal/en_US/TKSCALE_en_US.zcos">
<inlinemediaobject>
<imageobject>
<imagedata fileref="../../../../examples/sources_pal/en_US/TKSCALE_en_US.zcos" align="center" valign="middle"/>
<title>Example</title>
<para>
The following example calculate an arbitrary expression with multiple different configuration or blocks.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.zcos">
- Open this example in Xcos
- </link>
</para>
<para>
<latex>y=u(1) - u(2) - u(3)</latex>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image><![CDATA[
+ </para>
+ <scilab:image><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/userdefinedfunctions_pal/en_US/EXPRESSION_en_US.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_EXPRESSION">
<title>Interfacing function</title>
\end{eqnarray}
</latex>
<para>
- with
+ with
<emphasis>
y<subscript>n</subscript>
</emphasis>
\end{eqnarray}
</latex>
<para>
- with, like in <link linkend="CVode">CVode</link>,
+ with, like in <link linkend="CVode">CVode</link>,
<emphasis>
y<subscript>n</subscript>
</emphasis>
</latex>
</para>
<para>
- with <emphasis>J</emphasis> an approximation of the Jacobian:
+ with <emphasis>J</emphasis> an approximation of the Jacobian:
</para>
<para>
- <latex>
+ <latex>
J = \frac{\partial{G}}{\partial{y}} = \frac{\partial{F}}{\partial{y}}+\alpha\frac{\partial{F}}{\partial{\dot{y}}}, \hspace{4 mm} \alpha = \frac{\alpha_{n,0}}{h_n},
</latex>
</para>
<para>
- <emphasis>α</emphasis> changes whenever the step size or the method order varies.
+ <emphasis>α</emphasis> changes whenever the step size or the method order varies.
</para>
<para>
An implemented direct dense solver is used and we go on to the next step.
\end{eqnarray}
</latex>
<para>
- with, like in <link linkend="CVode">CVode</link>,
+ with, like in <link linkend="CVode">CVode</link>,
<emphasis>
y<subscript>n</subscript>
</emphasis>
</latex>
</para>
<para>
- with <emphasis>J</emphasis> an approximation of the Jacobian:
+ with <emphasis>J</emphasis> an approximation of the Jacobian:
</para>
<para>
- <latex>
+ <latex>
J = \frac{\partial{G}}{\partial{y}} = \frac{\partial{F}}{\partial{y}}+\alpha\frac{\partial{F}}{\partial{\dot{y}}}, \hspace{4 mm} \alpha = \frac{\alpha_{n,0}}{h_n},
</latex>
</para>
<para>
- <emphasis>α</emphasis> changes whenever the step size or the method order varies.
+ <emphasis>α</emphasis> changes whenever the step size or the method order varies.
</para>
<para>
Then, an implemented direct dense solver is used and we go on to the next step.
xmlns:ns4="http://www.w3.org/1999/xhtml"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:db="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>xcos_debug_gui</refname>
-
- <refpurpose>Interactive debugging function to be used in the Debug Xcos
- block</refpurpose>
- </refnamediv>
-
- <refsection>
- <title>Description</title>
-
- <para>The Xcos Debug block allows to set a Scilab instruction that is
- executed before and after the execution of each blocks during the
- simulation. Setting the instruction xcos_debug_gui() for the Debug block
- instruction makes a graphical user interface to be opened at the beginning
- of the simulation. This GUI allows to interactive debug. In particular it
- is possible to dynamically specify conditions for which the simulation
- will be suspended (break points). When halted on a break point user can
- examine the current values, state, input,... of the block.</para>
-
- <para>At any time the user can specify break points by a set of cumulative
- conditions:</para>
-
- <itemizedlist>
- <listitem>
- <para>The flag value for which the current block is called</para>
- </listitem>
-
- <listitem>
- <para>The current date value</para>
- </listitem>
-
- <listitem>
- <para>If the break takes place before and/or the block call</para>
- </listitem>
-
- <listitem>
- <para>The value of a Scilab boolean expression, the break is
- active if the condition evaluates to true. This expression may
- use the block variable <link
+ <refnamediv>
+ <refname>xcos_debug_gui</refname>
+
+ <refpurpose>Interactive debugging function to be used in the Debug Xcos
+ block
+ </refpurpose>
+ </refnamediv>
+
+ <refsection>
+ <title>Description</title>
+
+ <para>The Xcos Debug block allows to set a Scilab instruction that is
+ executed before and after the execution of each blocks during the
+ simulation. Setting the instruction xcos_debug_gui() for the Debug block
+ instruction makes a graphical user interface to be opened at the beginning
+ of the simulation. This GUI allows to interactive debug. In particular it
+ is possible to dynamically specify conditions for which the simulation
+ will be suspended (break points). When halted on a break point user can
+ examine the current values, state, input,... of the block.
+ </para>
+
+ <para>At any time the user can specify break points by a set of cumulative
+ conditions:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+ <para>The flag value for which the current block is called</para>
+ </listitem>
+
+ <listitem>
+ <para>The current date value</para>
+ </listitem>
+
+ <listitem>
+ <para>If the break takes place before and/or the block call</para>
+ </listitem>
+
+ <listitem>
+ <para>The value of a Scilab boolean expression, the break is
+ active if the condition evaluates to true. This expression may
+ use the block variable <link
linkend="C_struct">C_struct</link> that contains the current
- block elements and Scilab functions <link
+ block elements and Scilab functions <link
linkend="curblock">curblock</link> and <link
- linkend="scicos_time">scicos_time</link>. </para>
- </listitem>
- </itemizedlist>
-
- <mediaobject>
- <imageobject>
- <imagedata fileref="../images/Xcos_Debug.png" format="PNG"/>
- </imageobject>
- </mediaobject>
-
- <para>When the simulation is suspended, the graphical user interface shows
- the current time and current flag values, the block number and the path of
- the block in the super blocks hierarchy. </para>
-
- <para>The "Next" button restart the simulation till the next suspending
- condition</para>
-
- <para>The "End debug" button disable all conditions letting the simulation
- going on freely up to the end</para>
-
- <para>The "Pause" button allows to interactively observe the block data
- structure associated to the current block executing Scilab instructions in
- the Scilab console. User must enter the "return" instruction to go
- back.</para>
- </refsection>
-
-
- <refsection>
- <title>Authors</title>
-
- <simplelist type="vert">
- <member>Serge Steer, INRIA</member>
- </simplelist>
- </refsection>
-
- <refsection>
- <title>History</title>
-
- <revhistory>
- <revision>
- <revnumber>0.0</revnumber>
-
- <revdescription>Function xcos_debug_gui added</revdescription>
- </revision>
- </revhistory>
- </refsection>
+ linkend="scicos_time">scicos_time</link>.
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="../images/Xcos_Debug.png" format="PNG"/>
+ </imageobject>
+ </mediaobject>
+
+ <para>When the simulation is suspended, the graphical user interface shows
+ the current time and current flag values, the block number and the path of
+ the block in the super blocks hierarchy.
+ </para>
+
+ <para>The "Next" button restart the simulation till the next suspending
+ condition
+ </para>
+
+ <para>The "End debug" button disable all conditions letting the simulation
+ going on freely up to the end
+ </para>
+
+ <para>The "Pause" button allows to interactively observe the block data
+ structure associated to the current block executing Scilab instructions in
+ the Scilab console. User must enter the "return" instruction to go
+ back.
+ </para>
+ </refsection>
+
+
+ <refsection>
+ <title>Authors</title>
+
+ <simplelist type="vert">
+ <member>Serge Steer, INRIA</member>
+ </simplelist>
+ </refsection>
+
+ <refsection>
+ <title>History</title>
+
+ <revhistory>
+ <revision>
+ <revnumber>0.0</revnumber>
+
+ <revdescription>Function xcos_debug_gui added</revdescription>
+ </revision>
+ </revhistory>
+ </refsection>
</refentry>
<title>Exemple</title>
<para>
Ci-dessous un cas simple d'utilisation du bloc.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITCLEAR_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITCLEAR_fr_FR.zcos">
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/BITCLEAR_fr_FR.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_BITCLEAR">
<title>Exemple</title>
<para>
Ci-dessous un cas simple d'utilisation du bloc.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITSET_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/BITSET_fr_FR.zcos">
<inlinemediaobject>
<imageobject>
- <imagedata align="center" fileref="../../../../examples/integer_pal/fr_FR/BITSET_fr_FR.zcos" valign="middle"/>
+ <imagedata fileref="../../../../examples/integer_pal/fr_FR/BITSET_fr_FR.zcos" align="center" valign="middle"/>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/BITSET_fr_FR.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_BITSET">
<title>Exemple</title>
<para>
Cet exemple montre la propagation du bit de signe pendant une conversion d'int8 à int16.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/CONVERT_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/CONVERT_fr_FR.zcos">
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/CONVERT_fr_FR.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
</refsection>
<refsection id="Interfacingfunction_CONVERT">
<para>
La figure suivante montre un cas simple d'utilisation du bloc DLATCH avec
son chronogramme.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/DLATCH_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/DLATCH_fr_FR.zcos">
<inlinemediaobject>
<imageobject>
- <imagedata fileref="../../../../examples/integer_pal/fr_FR/DLATCH_fr_FR.zcos" valign="middle"/>
+ <imagedata fileref="../../../../examples/integer_pal/fr_FR/DLATCH_fr_FR.zcos" align="center" valign="middle"/>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
+ </para>
+ <scilab:image localized="true"><![CDATA[
// overload messagebox to avoid the "no continuous states" messages
function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
btn=1;
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/DLATCH_fr_FR.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_DLATCH">
<title>Fonction d'interfaçage</title>
<para>
Dans le schéma suivant, deux chiffres décimaux sont codés sur un seul octet. Le diagramme décode
l'entrée pour obtenir deux chiffres séparés.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/EXTRACTBITS_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/EXTRACTBITS_fr_FR.zcos">
<inlinemediaobject>
<para>
Le but de cet exemple est de coder deux chiffres décimaux dans un seul octet. Il fait exactement
le travail inverse de l'exemple du bloc <link linkend="EXTRACTBITS">EXTRACTBITS</link>.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/INTMUL_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/INTMUL_fr_FR.zcos">
<inlinemediaobject>
</literal>
</emphasis>
du compteur.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/JKFLIPFLOP_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/JKFLIPFLOP_fr_FR.zcos">
<inlinemediaobject>
</inlinemediaobject>
</link>
</para>
+ <scilab:image localized="true"><![CDATA[
+ importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/JKFLIPFLOP_fr_FR.zcos");
+ xcos_simulate(scs_m, 4);
+ ]]></scilab:image>
</refsection>
<refsection id="Interfacingfunction_JKFLIPFLOP">
<title>Fonction d'interfaçage</title>
</emphasis>
de sélection du bloc sont générées par
un compteur binaire.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/LOGIC_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/LOGIC_fr_FR.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
+ </para>
+ <scilab:image localized="true"><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/LOGIC_fr_FR.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
</refsection>
<refsection id="Interfacingfunction_LOGIC">
</emphasis>
à 0.5 s dans le sous-menu <emphasis>Configurer</emphasis> du menu
<emphasis>Simulation</emphasis>.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/SHIFT_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/SHIFT_fr_FR.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
-importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/SHIFT_fr_FR.zcos");
-xcos_simulate(scs_m, 4);
-]]></scilab:image>
</para>
<para>
Ci-dessous le détail du compteur binaire.
</para>
- <para/>
<para>
<inlinemediaobject>
<imageobject>
<para>
L'exemple suivant présente une application typique d'anti-rebond de la bascule SR. Le graphe de
sortie montre l'effet mémoire de la bascule.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/SRFLIPFLOP_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
</para>
- <para/>
<para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/fr_FR/SRFLIPFLOP_fr_FR.zcos">
<inlinemediaobject>
</imageobject>
</inlinemediaobject>
</link>
- <scilab:image localized="true"><![CDATA[
+ </para>
+
+ <scilab:image localized="true"><![CDATA[
importXcosDiagram(SCI + "/modules/xcos/examples/integer_pal/fr_FR/SRFLIPFLOP_fr_FR.zcos");
xcos_simulate(scs_m, 4);
]]></scilab:image>
- </para>
</refsection>
<refsection id="Interfacingfunction_SRFLIPFLOP">
<title>Fonction d'interfaçage</title>
Dans cet exemple nous créons un genérateur d'onde carrée avec deux sorties inverses l'une de l'autre.
en utilisant un bloc SUPER_f avec le contenu décrit par la figure suivante, dans laquelle vous pouvez voir
l'utilisation du bloc CLKINV_f comme entrée d'événement du générateur d'onde carrée.
- <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/CLKINV_f_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
- </link>
- .
</para>
- <para/>
<para>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/CLKINV_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../..//examples/portaction_pal/en_US/CLKINV_f_internal_en_US.zcos"/>
- </imageobject>
- </mediaobject>
+ <link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/CLKINV_f_fr_FR.zcos">
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/CLKINV_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </link>
</para>
<para>
La figure suivante montre la sortie du Super bloc :
<para>
Le Super block ci-dessous est principalement un diviseur de fréquence par 4, associé à une génération d'événement à l'instant
<emphasis>
- <literal>t= 3 s</literal>
+ <literal>t = 3 s</literal>
</emphasis>
.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/CLKOUTV_f_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/CLKOUTV_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/CLKOUTV_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
+ <scilab:image><![CDATA[
+importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/CLKOUTV_f_fr_FR.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
</refsection>
<refsection id="Interfacingfunction_CLKOUTV_f">
<title>Fonction d'interfaçage</title>
<para>
L'exemple suivant montre l'utilisation du bloc INIMPL_f. Le Super bloc contient un circuit électrique simple avec deux entrées, une sur la résistance, l'autre pour la masse. Ces entrées sont connectées à l'environnement extérieur du bloc à travers deux blocs INIMPL_f numérotés
1 et 2. La sortie du Super block est connectée via le bloc <link linkend="OUTIMPL_f">OUTIMPL_f</link>.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/INIMPL_f_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/INIMPL_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/INIMPL_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
+ <scilab:image><![CDATA[
+// overload messagebox to avoid the "modelica compiler" message
+function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
+ btn=1;
+endfunction
+
+importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/INIMPL_f_fr_FR.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
</refsection>
<refsection id="Interfacingfunction_INIMPL_f">
<title>Fonction d'interfaçage</title>
<emphasis role="bold">Output port size</emphasis>
</para>
<para> Un vecteur de deux entiers qui définit les
- dimensions attendues du signal ([#lignes #colones]).
- Par défaut la valeur de ce champ est [-1 -2] ce qui
- signifie que les dimensions du signal sont héritées du
- niveau supérieur. Il peut être nécéssaire d'imposer
- les valeurs effectives des dimensions pour la
- compilation séparée du super bloc (Génération de code,
- ...). </para>
+ dimensions attendues du signal ([#lignes #colones]).
+ Par défaut la valeur de ce champ est [-1 -2] ce qui
+ signifie que les dimensions du signal sont héritées du
+ niveau supérieur. Il peut être nécéssaire d'imposer
+ les valeurs effectives des dimensions pour la
+ compilation séparée du super bloc (Génération de code,
+ ...).
+ </para>
<para> Properties : Type 'vec' of size -1.</para>
</listitem>
<listitem>
<emphasis role="bold">Output port type</emphasis>
</para>
<para> Un entier qui spécifie le type de signal attendu sur ce port.
- Par défaut la valeur de ce champ est -1 ce qui
- signifie que le type du signal est hérité du
- niveau supérieur. Il peut être nécéssaire d'imposer
- une valeur effective du type pour la
- compilation séparée du super bloc (Génération de code,
- ...).
- ).</para>
+ Par défaut la valeur de ce champ est -1 ce qui
+ signifie que le type du signal est hérité du
+ niveau supérieur. Il peut être nécéssaire d'imposer
+ une valeur effective du type pour la
+ compilation séparée du super bloc (Génération de code,
+ ...).
+ ).
+ </para>
<para> Properties : Type 'vec' of size 1.</para>
</listitem>
</itemizedlist>
<refsection id="Example_IN_f">
<title>Exemple</title>
<para>
- Dans l'exemple suivant le Super bloc créé est un modulateur d'amplitude. Le bloc IN_f est utilisé comme entrée de signal de modulation. Son type de données est défini par le type d'entrée du bloc de gain qui est un scalaire de type double.
+ Dans l'exemple suivant le Super bloc créé est un modulateur d'amplitude.
+ Le bloc IN_f est utilisé comme entrée de signal de modulation.
+ Son type de données est défini par le type d'entrée du bloc de gain qui est un scalaire de type double.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/IN_f_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/IN_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/IN_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
+ <scilab:image>
+ <![CDATA[
+ importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/IN_f_fr_FR.zcos");
+ xcos_simulate(scs_m, 4);]]>
+ </scilab:image>
</refsection>
<refsection id="Interfacingfunction_IN_f">
<title>Fonction d'interfaçage</title>
<title>Exemple</title>
<para>
Dans l'exemple suivant le Super bloc est un simple commutateur à transistor.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos">
- Open this example in Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
<para>
- La figure figure suivante montre l'utilisation du Super bloc et la sortie résultante lorsque son entrée est basculée entre les potentiels GND et Vcc. Vous pouvez voir sur la sortie l'effet de la tension de saturation du transistor (sortie minimale = 0.4 Volt).
+ La figure suivante montre l'utilisation du Super bloc et la sortie résultante lorsque son entrée est basculée entre les potentiels GND et Vcc. Vous pouvez voir sur la sortie l'effet de la tension de saturation du transistor (sortie minimale = 0.4 Volt).
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/OUTIMPL_f_internal_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
+ <scilab:image><![CDATA[
+// overload messagebox to avoid the "modelica compiler" message
+function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
+ btn=1;
+endfunction
+
+importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/OUTIMPL_f_fr_FR.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
</refsection>
<refsection id="Interfacingfunction_OUTIMPL_f">
<title>Fonction d'interfaçage</title>
<title>Exemple</title>
<para>
Dans l'exemple suivant le Super bloc englobe deux non linéarités. Le bloc OUT_f est la sortie du signal non linéaire.
+ </para>
+ <para>
<link type="scilab" linkend="scilab.xcos/xcos/examples/portaction_pal/fr_FR/OUT_f_fr_FR.zcos">
- Ouvrir cet exemple dans Xcos
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="../../../../examples/portaction_pal/fr_FR/OUT_f_fr_FR.zcos" align="center" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
</link>
- .
</para>
- <para/>
- <mediaobject>
- <imageobject>
- <imagedata fileref="../../../../examples/portaction_pal/fr_FR/OUT_f_fr_FR.zcos"/>
- </imageobject>
- </mediaobject>
+ <scilab:image><![CDATA[
+// overload messagebox to avoid the "modelica compiler" message
+function [btn] = messagebox(msg, msgboxtitle, msgboxicon, buttons, ismodal)
+ btn=1;
+endfunction
+
+importXcosDiagram(SCI + "/modules/xcos/examples/portaction_pal/fr_FR/OUT_f_fr_FR.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
</refsection>
<refsection id="Interfacingfunction_OUT_f">
<title>Fonction d'interfaçage</title>
\end{eqnarray}
</latex>
<para>
- avec
+ avec
<emphasis>
y<subscript>n</subscript>
</emphasis>
\end{eqnarray}
</latex>
<para>
- avec, comme dans <link linkend="CVode">CVode</link>,
+ avec, comme dans <link linkend="CVode">CVode</link>,
<emphasis>
y<subscript>n</subscript>
</emphasis>
</latex>
</para>
<para>
- avec <emphasis>J</emphasis> une approximation du Jacobien:
+ avec <emphasis>J</emphasis> une approximation du Jacobien:
</para>
<para>
- <latex>
+ <latex>
J = \frac{\partial{G}}{\partial{y}} = \frac{\partial{F}}{\partial{y}}+\alpha\frac{\partial{F}}{\partial{\dot{y}}}, \hspace{4 mm} \alpha = \frac{\alpha_{n,0}}{h_n},
</latex>
</para>
<para>
- <emphasis>α</emphasis> change quand le pas ou l'ordre de la méthode varient.
+ <emphasis>α</emphasis> change quand le pas ou l'ordre de la méthode varient.
</para>
<para>
Un solveur direct dense est alors utilisé et on poursuit sur le prochain pas de temps.
\end{eqnarray}
</latex>
<para>
- avec, comme dans <link linkend="CVode">CVode</link>,
+ avec, comme dans <link linkend="CVode">CVode</link>,
<emphasis>
y<subscript>n</subscript>
</emphasis>
</latex>
</para>
<para>
- avec <emphasis>J</emphasis> une approximation du Jacobien :
+ avec <emphasis>J</emphasis> une approximation du Jacobien :
</para>
<para>
- <latex>
+ <latex>
J = \frac{\partial{G}}{\partial{y}} = \frac{\partial{F}}{\partial{y}}+\alpha\frac{\partial{F}}{\partial{\dot{y}}}, \hspace{4 mm} \alpha = \frac{\alpha_{n,0}}{h_n},
</latex>
</para>
<para>
- <emphasis>α</emphasis> change quand le pas ou l'ordre de la méthode varient.
+ <emphasis>α</emphasis> change quand le pas ou l'ordre de la méthode varient.
</para>
<para>
Un solveur direct dense est alors utilisé et on poursuit sur le prochain pas de temps.