Download data/help/Userdefinedfunctions_pal/scifunc_block_m.xml from notsn/XCos_MCP: direct link, hf CLI and curl.
- Browser
- Download file 12 kB
-
https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/help/Userdefinedfunctions_pal/scifunc_block_m.xml
- Command line
-
hf download hf://spaces/notsn/XCos_MCP/data/help/Userdefinedfunctions_pal/scifunc_block_m.xml
-
curl -L -o scifunc_block_m.xml https://huggingface.co/spaces/notsn/XCos_MCP/resolve/main/data/help/Userdefinedfunctions_pal/scifunc_block_m.xml
12 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="scifunc_block_m" xml:lang="en_US"> | |
| <refnamediv> | |
| <refname>scifunc_block_m</refname> | |
| <refpurpose>Scilab function block</refpurpose> | |
| </refnamediv> | |
| <refsection> | |
| <title>Block Screenshot</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../images/palettes/scifunc_block_m.png" align="center"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </refsection> | |
| <refsection id="Contents_scifunc_block_m"> | |
| <title>Contents</title> | |
| <itemizedlist> | |
| <listitem> | |
| <xref linkend="Description_scifunc_block_m">Description</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Dialogbox_scifunc_block_m">Parameters</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Defaultproperties_scifunc_block_m">Default properties</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Interfacingfunction_scifunc_block_m">Interfacing function</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Computationalfunction_scifunc_block_m">Computational function</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Example_scifunc_block_m">Example</xref> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Description_scifunc_block_m"> | |
| <title>Description</title> | |
| <para> | |
| This block can realize any type of Scicos block. The function of the | |
| block is defined interactively using dialogue boxes and in Scilab | |
| language. During simulation, these instructions are interpreted by | |
| Scilab; the simulation of diagrams that include these types of blocks | |
| is slower. For more information see Scicos reference manual. | |
| </para> | |
| </refsection> | |
| <refsection id="Dialogbox_scifunc_block_m"> | |
| <title>Parameters</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../images/gui/scifunc_block_m_gui.gif" | |
| align="center" style="float:right" /> | |
| <!-- align => Javahelp, style => Online --> | |
| </imageobject> | |
| </inlinemediaobject> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">input ports sizes</emphasis> | |
| </para> | |
| <para> a matrix. Number of regular input ports </para> | |
| <para> Properties : Type 'mat' of size [-1 2] </para> | |
| <para> | |
| Example : [1,1] for one input of size 1x1; [1,1;2,3] for two inputs of size | |
| 1x1 and 2x3 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">output port sizes</emphasis> | |
| </para> | |
| <para> a matrix. Number of regular output ports </para> | |
| <para> Properties : Type 'mat' of size [-2 2] </para> | |
| <para> Example : [1,1] for one output of size 1x1; [1,1;2,3] for two outputs | |
| of size 1x1 and 2x3 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">input event ports sizes</emphasis> | |
| </para> | |
| <para> a column vector. Number of input event ports </para> | |
| <para> Properties : Type 'vec' of size -1 </para> | |
| <para> Example : [1] for one input event port; [1;1] for two input event ports </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">output events ports sizes</emphasis> | |
| </para> | |
| <para> a column vector. Number of output event ports</para> | |
| <para> Properties : Type 'vec' of size -1 </para> | |
| <para> Example : [1] for one output event port; [1;1] for two output event ports </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">initial continuous state</emphasis> | |
| </para> | |
| <para> a column vector. </para> | |
| <para> Properties : Type 'vec' of size -1 </para> | |
| <para> Example : [0;0] for two initial continuous states </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">initial discrete state</emphasis> | |
| </para> | |
| <para> a column vector. </para> | |
| <para> Properties : Type 'vec' of size -1 </para> | |
| <para> Example : [0;0] for two initial discrete states </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">System parameters vector</emphasis> | |
| </para> | |
| <para> a column vector. </para> | |
| <para> Properties : Type 'vec' of size -1 </para> | |
| <para> Example : [0.5;1.5;2.5] for three parameters </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">initial firing vector </emphasis> | |
| </para> | |
| <para> | |
| a column vector. Size of this vector corresponds to the number of event | |
| outputs. The value of the i-th entry specifies the time of the preprogrammed | |
| event firing on the i-th output event port. If less than zero, no event is | |
| preprogrammed. | |
| </para> | |
| <para> Properties : Type 'vec' of size sum(Number of output event ports) </para> | |
| <para> Example : [1;2] 1 and 2 are the preprogrammed events firing that correspond | |
| to the first output event port and to the second output event port respectively | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">is block always active </emphasis> | |
| </para> | |
| <para> Properties : Type 'vec' of size 1</para> | |
| <para> Example : 1 the block is always active; 0 the block is not always active </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| Other dialogues are opened consecutively where the user may write Scilab | |
| code associated with the computations needed (block initialization, outputs, | |
| continuous and discrete state, output events date, block ending). | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Defaultproperties_scifunc_block_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> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">mode:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular inputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [1,1] / type 1</emphasis> | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular outputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [1,1] / 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">scifunc</emphasis> | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| <para/> | |
| </refsection> | |
| <refsection id="Example_scifunc_block_m"> | |
| <title>Example</title> | |
| <para> | |
| <link type="scilab" linkend="scilab.xcos/xcos/examples/userdefinedfunctions_pal/en_US/scifunc_block_m_en_US.zcos"> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../examples/userdefinedfunctions_pal/en_US/scifunc_block_m_en_US.zcos" align="center"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </link> | |
| </para> | |
| <scilab:image><![CDATA[ | |
| importXcosDiagram(SCI + "/modules/xcos/examples/userdefinedfunctions_pal/en_US/scifunc_block_m_en_US.zcos"); | |
| xcos_simulate(scs_m, 4); | |
| ]]></scilab:image> | |
| </refsection> | |
| <refsection id="Interfacingfunction_scifunc_block_m"> | |
| <title>Interfacing function</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> SCI/modules/scicos_blocks/macros/Misc/scifunc_block_m.sci</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Computationalfunction_scifunc_block_m"> | |
| <title>Computational function</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> SCI/modules/scicos/src/fortran/scifunc.f (Type 3)</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| </refentry> | |