Xcos help: add an example to M_SWITCH 49/19249/2
Clément DAVID [Fri, 7 Apr 2017 14:40:59 +0000 (16:40 +0200)]
Change-Id: I64b4c81fd9d99e5e6152199ca5e338963d06d6e4

scilab/CHANGES.md
scilab/modules/helptools/etc/images_md5.txt
scilab/modules/helptools/images/M_SWITCH.zcos.png [new file with mode: 0644]
scilab/modules/helptools/images/M_SWITCH_1.png [new file with mode: 0644]
scilab/modules/xcos/examples/signalrouting_pal/M_SWITCH.zcos [new file with mode: 0644]
scilab/modules/xcos/help/en_US/palettes/Signalrouting_pal/M_SWITCH.xml

index fc9eb08..651c747 100644 (file)
@@ -73,7 +73,7 @@ Feature changes and additions
 Help pages:
 -----------
 
-* fixed / improved:  `bench_run`
+* fixed / improved:  `bench_run` `M_SWITCH`
 
 
 Data Structures
index 4fe4f65..eeb91fa 100644 (file)
@@ -135,6 +135,7 @@ LineSpec_1.png=3865808691b21c492ceb231a78009863
 LineSpec_2.png=a06fa74995bbeb13d6486a51c45e05a3
 LineSpec_3.png=944c239bd89a7e1f5d21705c19c1fba
 LineSpec_4.png=57732b0000bb78016145a6d579836134
+M_SWITCH_1.png=bddadf304806390eec7355e8068307b6
 Matplot1_1.png=d6a47166ab86e17add7e33932c1c75e0
 Matplot_1.png=d64708ebf99438b7fc27b1c4e1926050
 Matplot_2.png=b7b8694b84bef82f90933032af005ad9
diff --git a/scilab/modules/helptools/images/M_SWITCH.zcos.png b/scilab/modules/helptools/images/M_SWITCH.zcos.png
new file mode 100644 (file)
index 0000000..cd2594b
Binary files /dev/null and b/scilab/modules/helptools/images/M_SWITCH.zcos.png differ
diff --git a/scilab/modules/helptools/images/M_SWITCH_1.png b/scilab/modules/helptools/images/M_SWITCH_1.png
new file mode 100644 (file)
index 0000000..bd3b6e5
Binary files /dev/null and b/scilab/modules/helptools/images/M_SWITCH_1.png differ
diff --git a/scilab/modules/xcos/examples/signalrouting_pal/M_SWITCH.zcos b/scilab/modules/xcos/examples/signalrouting_pal/M_SWITCH.zcos
new file mode 100644 (file)
index 0000000..fb8097a
Binary files /dev/null and b/scilab/modules/xcos/examples/signalrouting_pal/M_SWITCH.zcos differ
index b1185b3..0eba283 100644 (file)
             </listitem>
         </itemizedlist>
     </refsection>
+    <refsection id="Examples_M_SWITCH">
+        <title>Example</title>
+        <refsection id="Example_M_SWITCH_1">
+            <title>Example 1</title>
+            <para>This sample model demonstrates signal selection with different parameters : with a 0 or 1 indexation and with different rounding modes.
+            </para>
+            <para>
+                <link type="scilab" linkend="scilab.xcos/xcos/examples/signalrouting_pal/M_SWITCH.zcos">
+                    <inlinemediaobject>
+                        <imageobject>
+                            <imagedata align="center" fileref="../../../../examples/signalrouting_pal/M_SWITCH.zcos" valign="middle"/>
+                        </imageobject>
+                    </inlinemediaobject>
+                </link>
+                <scilab:image><![CDATA[
+importXcosDiagram(SCI + "/modules/xcos/examples/signalrouting_pal/M_SWITCH.zcos");
+xcos_simulate(scs_m, 4);
+]]></scilab:image>
+            </para>
+        </refsection>
+
+    </refsection>
     <refsection id="Interfacingfunction_M_SWITCH">
         <title>Interfacing function</title>
         <itemizedlist>