Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Xcos > palettes > Electrical_pal > Switch

Switch

Non-ideal electrical switch

Block Screenshot

Description

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.

Note that using this block may result in a stiff model, so try to choose proper error tolerances.

Dialog box

  • Resistance in On state (Ohm)

    Switch resistance when the Switch is closed

    Properties : Type 'vec' of size 1.

  • Resistance in Off state (Ohm)

    Switch resistance when the switch is open

    Properties : Type 'vec' of size 1.

Default properties

  • Inputs :

    • Modelica variable name : 'p'

      Implicit variable.

    • Modelica variable name : 'inp'

      Explicit variable.

  • Outputs :

    • Modelica variable name : 'n'

      Implicit variable.

  • Parameters :

    • Modelica parameter name : 'Ron'

      Default value : 0.01

      Is a state variable : no.

    • Modelica parameter name : 'Roff'

      Default value : 100000

      Is a state variable : no.

  • File name of the model : Switch

Interfacing function

  • SCI/modules/scicos_blocks/macros/Electrical/Switch.sci

Modelica model

  • SCI/modules/scicos_blocks/macros/Electrical/Switch.mo

Report an issue
<< SineVoltage Electrical_pal VariableResistor >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:39 CET 2018