Current-Controlled Switch

Current-controlled switch with hysteresis

  • Library:
  • Simscape / Electrical / Additional Components / SPICE Passives

Description

The Current-Controlled Switch block represents the electrical characteristics of a switch whose state is controlled by the current through the input ports (the controlling current):

  • When the controlling current is greater than the sum of the Threshold current, IT and Hysteresis current, IH parameter values, the switch is closed and has a resistance equal to the On resistance, RON parameter value.

  • When the controlling current is less than the Threshold current, IT parameter value minus the Hysteresis current, IH parameter value, the switch is open and has a resistance equal to the Off resistance, ROFF parameter value.

  • When the controlling current is greater than or less than the Threshold current, IT parameter value by an amount less than or equal to the Hysteresis current, IH parameter value, the current is in the crossover region and the state of the switch remains unchanged.

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 current, IH 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

expand all

Electrical conserving port associated with the current controlled switch positive input.

Electrical conserving port associated with the current controlled switch negative input.

Electrical conserving port associated with the current controlled switch positive output.

Electrical conserving port associated with the current controlled switch negative output.

Parameters

expand all

Current above which the block interprets the controlling current as HIGH.

Note

The controlling current must differ from the threshold current by at least the Hysteresis current, IH parameter value to change the state of the switch.

Amount by which the controlling current must exceed or fall below the Threshold current, IT parameter value to change the state of the switch.

Resistance of the switch when it is closed.

Resistance of the switch when it is open.

Select one of the following options for the state of the switch at the start of the simulation:

  • On — The switch is initially closed and its resistance value is equal to the On resistance, RON parameter value.

  • Off — The switch is initially open and its resistance value is equal to the Off resistance, ROFF parameter value.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2009a