Voltage-Controlled Switch
Voltage-controlled switch with hysteresis
Libraries:
Simscape /
Electrical /
Additional Components /
SPICE Passives
Description
The Voltage-Controlled Switch block represents the electrical characteristics of a switch whose state is controlled by the voltage across the input ports (the controlling voltage).
This block models either a variable-resistance or a short-transition switch. For a
variable-resistance switch, set the Switch model parameter to
Smooth transition between Von and Voff
. For a
short-transition switch, set Switch model to Abrupt
transition after delay
.
Short-transition Switch
In a short-transition switch, the transition between the off and on states is instantaneous:
When the controlling voltage is greater than or equal to the sum of the Threshold voltage, VT and Hysteresis voltage, VH parameter values, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
When the controlling voltage is less than the Threshold voltage, VT parameter value minus the Hysteresis voltage, VH parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
When the controlling voltage is greater than or less than the Threshold voltage, VT parameter value by an amount less than or equal to the Hysteresis voltage, VH parameter value, the voltage is in the crossover region and the state of the switch remains unchanged.
Note
If the Hysteresis voltage, VH parameter value is less
than 0
, the block models a variable-resistance switch
independently of the value you set for the Switch model
parameter.
Variable-resistance Switch
In a variable-resistance switch, the transition between the off and on states is exponential:
When the Control voltage for on state, VON is greater than the Control voltage for off state, VOFF:
If the controlling voltage is greater than the Control voltage for on state, VON parameter value, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
If the controlling voltage is less than the Control voltage for off state, VOFF parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
If the controlling voltage is greater than the Control voltage for off state, VOFF parameter value or less than the Control voltage for on state, VON parameter value, the resistance is defined by:
where:
Rs is the switch resistance.
is the log-mean of resistor values.
is the log-ratio of resistor values.
Vc is the controlling voltage.
is the mean of the control voltages.
is the difference between the control voltages.
When the Control voltage for on state, VON is less than the Control voltage for off state, VOFF:
If the controlling voltage is less than the Control voltage for on state, VON parameter value, the switch is closed and has a resistance equal to the On resistance, RON parameter value.
If the controlling voltage is greater than the Control voltage for off state, VOFF parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.
If the controlling voltage is less than the Control voltage for off state, VOFF parameter value or greater than the Control voltage for on state, VON parameter value, the resistance is defined by:
Assumptions and Limitations
The block output resistance model is discontinuous during switching. The discontinuity might cause numerical issues. Try the following actions to resolve the issues:
Set the On resistance, RON and Off resistance, ROFF parameter values to keep RON divided by ROFF as large as possible, and more than
1e+12
.Increase the Hysteresis voltage, VH parameter value to reduce switch chatter.
If a variable-step solver is employed, decrease the Max step size parameter value (in the Configuration Parameters block dialog box).
Note
This increases the simulation time.
Ports
Conserving
Parameters
Extended Capabilities
Version History
Introduced in R2009a