Spaces:
Sleeping

XCos_MCP / data /help /Electrical_pal /Switch.xml
xcos-bot
Deploy snapshot from 23aafd1a (verified archive)
39e01c4
Raw History Blame Contribute Delete
7.73 kB
<?xml version="1.0" encoding="UTF-8"?>
<!--
* 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="Switch" xml:lang="en_US">
<refnamediv>
<refname>Switch</refname>
<refpurpose>Non-ideal electrical switch</refpurpose>
</refnamediv>
<refsection>
<title>Block Screenshot</title>
<inlinemediaobject>
<imageobject>
<imagedata fileref="../../../../images/palettes/Switch.png" align="center"/>
</imageobject>
</inlinemediaobject>
</refsection>
<refsection id="Contents_Switch">
<title>Contents</title>
<itemizedlist>
<listitem>
<xref linkend="Description_Switch">Description</xref>
</listitem>
<listitem>
<xref linkend="Dialogbox_Switch">Parameters</xref>
</listitem>
<listitem>
<xref linkend="Defaultproperties_Switch">Default properties</xref>
</listitem>
<listitem>
<xref linkend="Interfacingfunction_Switch">Interfacing function</xref>
</listitem>
<listitem>
<xref linkend="Switch">Modelica model</xref>
</listitem>
</itemizedlist>
</refsection>
<refsection id="Description_Switch">
<title>Description</title>
<para>
This is a non-ideal two-pole switch. If the explicit input become positive, two pins
are connected via a resistor of resistance RON). Otherwise, two pins are connected via
ROFF resistance.
</para>
<para>
<note>
Note that using this block may result in a stiff model, so try to choose proper
error tolerances.
</note>
</para>
</refsection>
<refsection id="Dialogbox_Switch">
<title>Parameters</title>
<inlinemediaobject>
<imageobject>
<imagedata fileref="../../../../images/gui/Switch_gui.gif" align="center" style="float:right"/>
<!-- align => Javahelp, style => Online -->
</imageobject>
</inlinemediaobject>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Resistance in On state (Ohm)</emphasis>
</para>
<para> Switch resistance when the Switch is closed</para>
<para> Properties : Type 'vec' of size 1. </para>
</listitem>
<listitem>
<para>
<emphasis role="bold">Resistance in Off state (Ohm)</emphasis>
</para>
<para> Switch resistance when the switch is open</para>
<para> Properties : Type 'vec' of size 1.</para>
</listitem>
</itemizedlist>
<para/>
</refsection>
<refsection id="Defaultproperties_Switch">
<title>Default properties</title>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Inputs :</emphasis>
</para>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Modelica variable name :</emphasis> 'p'
</para>
<para>
Implicit <emphasis role="bold">variable.</emphasis>
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">Modelica variable name :</emphasis> 'inp'
</para>
<para>
Explicit <emphasis role="bold">variable.</emphasis>
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>
<emphasis role="bold">Outputs :</emphasis>
</para>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Modelica variable name :</emphasis> 'n'
</para>
<para>
Implicit <emphasis role="bold">variable.</emphasis>
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>
<emphasis role="bold">Parameters :</emphasis>
</para>
<itemizedlist>
<listitem>
<para>
<emphasis role="bold">Modelica parameter name :</emphasis> 'Ron'
</para>
<para>
<emphasis role="bold">Default value :</emphasis> 0.01
</para>
<para>
<emphasis role="bold">Is a state variable :</emphasis> no.
</para>
</listitem>
<listitem>
<para>
<emphasis role="bold">Modelica parameter name :</emphasis> 'Roff'
</para>
<para>
<emphasis role="bold">Default value :</emphasis> 100000
</para>
<para>
<emphasis role="bold">Is a state variable :</emphasis> no.
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>
<emphasis role="bold">File name of the model :</emphasis> Switch
</para>
</listitem>
</itemizedlist>
<para/>
</refsection>
<refsection id="Interfacingfunction_Switch">
<title>Interfacing function</title>
<itemizedlist>
<listitem>
<para> SCI/modules/scicos_blocks/macros/Electrical/Switch.sci</para>
</listitem>
</itemizedlist>
</refsection>
<refsection id="Modelicamodel_Switch">
<title>Modelica model</title>
<itemizedlist>
<listitem>
<para> SCI/modules/scicos_blocks/macros/Electrical/Switch.mo</para>
</listitem>
</itemizedlist>
</refsection>
</refentry>