Download data/help/Signalrouting_pal/SWITCH2_m.xml from notsn/XCos_MCP: direct link, hf CLI and curl.
- Browser
- Download file 11.5 kB
-
https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/help/Signalrouting_pal/SWITCH2_m.xml
- Command line
-
hf download hf://spaces/notsn/XCos_MCP/data/help/Signalrouting_pal/SWITCH2_m.xml
-
curl -L -o SWITCH2_m.xml https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/help/Signalrouting_pal/SWITCH2_m.xml
11.5 kB
| <!-- | |
| * Scicos | |
| * | |
| * Copyright (C) INRIA - METALAU Project <scicos@inria.fr> (HTML version) | |
| * Copyright (C) DIGITEO - Scilab Consortium (XML Docbook version) | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License | |
| * along with this program; if not, write to the Free Software | |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | |
| * See the file ./license.txt | |
| --> | |
| <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="SWITCH2_m" xml:lang="en_US"> | |
| <refnamediv> | |
| <refname>SWITCH2_m</refname> | |
| <refpurpose>Switch2</refpurpose> | |
| </refnamediv> | |
| <refsection> | |
| <title>Block Screenshot</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../images/palettes/SWITCH2_m.png" align="center"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </refsection> | |
| <refsection id="Contents_SWITCH2_m"> | |
| <title>Contents</title> | |
| <itemizedlist> | |
| <listitem> | |
| <xref linkend="Description_SWITCH2_m">Description</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Dialogbox_SWITCH2_m">Parameters</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Defaultproperties_SWITCH2_m">Default properties</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Example_SWITCH2_m">Example</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Interfacingfunction_SWITCH2_m">Interfacing function</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Computationalfunction_SWITCH2_m">Computational function</xref> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Description_SWITCH2_m"> | |
| <title>Description</title> | |
| <para> | |
| The Switch block passes through the first (top) input or the third | |
| (bottom) input based on the value of the second (middle) input. The | |
| first and third inputs are called data inputs. The second input is | |
| called the control input. You select the conditions under which the | |
| first input is passed with the Criteria for passing first input | |
| parameter. You can make the block check whether the control input is | |
| greater than or equal to the threshold value, purely greater than the | |
| threshold value, or nonzero. If the control input meets the condition | |
| set in the Criteria for passing first input parameter, then the first | |
| input is passed. Otherwise, the third input is passed. | |
| </para> | |
| </refsection> | |
| <refsection id="Dialogbox_SWITCH2_m"> | |
| <title>Parameters</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../images/gui/SWITCH2_m_gui.gif" align="center" style="float:right"/> | |
| <!-- align => Javahelp, style => Online --> | |
| </imageobject> | |
| </inlinemediaobject> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">Datatype</emphasis> | |
| </para> | |
| <para> a scalar. Give the datatype of the inputs/output.</para> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">1:</emphasis> matrix of real numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">2:</emphasis> matrix of complex numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">3:</emphasis> matrix of int32 numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">4:</emphasis> matrix of int16 numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">5:</emphasis> matrix of int8 numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">6:</emphasis> matrix of uint32 numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">7:</emphasis> matrix of uint16 numbers, | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">8:</emphasis> matrix of uint8 numbers. | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| <para> Properties : Type 'vec' of size 1 </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold"> | |
| Pass first input if: u2 ≥ a | |
| </emphasis> | |
| </para> | |
| <para> Select the conditions under which the first input is passed. You can make | |
| the block check whether the control input is greater than or equal to the | |
| threshold value, purely greater than the threshold value, or nonzero. | |
| If the control input meets the condition set in this parameter, then the | |
| first input is passed. Otherwise, the third input is passed. | |
| </para> | |
| <para> Properties : Type 'vec' of size 1. </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">Threshold a</emphasis> | |
| </para> | |
| <para> | |
| Assign the switch threshold that determines which input is passed to the output. | |
| </para> | |
| <para> Properties : Type 'vec' of size 1. </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">Use zero crossing: yes </emphasis> | |
| </para> | |
| <para> Select to enable zero crossing detection.</para> | |
| <para> Properties : Type 'vec' of size 1.</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Defaultproperties_SWITCH2_m"> | |
| <title>Default properties</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">always active:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">direct-feedthrough:</emphasis> yes | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">zero-crossing:</emphasis> yes | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">mode:</emphasis> yes | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular inputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [-1,-2] / type 1</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 2 : size [1,1] / type 0</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 3 : size [-1,-2] / type 1</emphasis> | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular outputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [-1,-2] / type 1</emphasis> | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">number/sizes of activation inputs:</emphasis> 0 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">number/sizes of activation outputs:</emphasis> 0 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">continuous-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">discrete-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">object discrete-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">name of computational function:</emphasis> | |
| <emphasis role="italic">switch2_m</emphasis> | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| <para/> | |
| </refsection> | |
| <refsection id="Example_SWITCH2_m"> | |
| <title>Example</title> | |
| <para> | |
| <link type="scilab" linkend="scilab.xcos/xcos/examples/signalrouting_pal/SWITCH2_m_Example.zcos"> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata align="center" fileref="../../../../examples/signalrouting_pal/SWITCH2_m_Example.zcos"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </link> | |
| </para> | |
| </refsection> | |
| <refsection id="Interfacingfunction_SWITCH2_m"> | |
| <title>Interfacing function</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> SCI/modules/scicos_blocks/macros/Branching/SWITCH2_m.sci</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Computationalfunction_SWITCH2_m"> | |
| <title>Computational function</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> SCI/modules/scicos_blocks/src/c/switch2_m.c (Type 4)</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| </refentry> | |