Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Switch

Switch controlled by external physical signal

Library

Electrical Elements

Description

The Switch block models a switch controlled by an external physical signal. If the external physical signal PS is greater than the value specified in the Threshold parameter, then the switch is closed, otherwise the switch is open.

Electrical switches add discontinuities to your model, and therefore your choice of the solver can influence the model behavior. For detailed information about the solver settings, see Making Optimal Solver Choices for Physical Simulation.

Variables

Use the Variables tab in the block dialog box (or the Variables section in the block Property Inspector) to set the priority and initial target values for the block variables prior to simulation. For more information, see Set Priority and Initial Target for Block Variables.

Parameters

Closed resistance R_closed

The resistance of the switch when it is closed. The parameter value must be greater than zero. The default value is 0.01 Ω.

Open conductance G_open

The conductance of the switch when it is open. The parameter value must be greater than zero. The default value is 1e-8 1/Ω.

Threshold

The threshold value for opening and closing the switch. If the external physical signal PS is greater than this value, then the switch is closed, otherwise the switch is open. The default value is 0.

Ports

The block has two electrical conserving ports and one physical signal port PS.

See Also

Introduced in R2007a

Was this topic helpful?