Switch

Purpose

On-off switch

Library

Electrical / Switches

Description

../../_images/switch.svg

This Switch provides an ideal short or open circuit between its two electrical terminals. The switch is open when the input signal is zero, otherwise closed.

Parameters

Initial conductivity

Initial conduction state of the switch. The switch is initially open if the parameter evaluates to zero, otherwise closed. This parameter may either be a scalar or a vector corresponding to the implicit width of the component. The default value is 0.

Switch model (CPU code generation)

Select the switch model in the generated code.

Fundamental grid frequency (Hz)

Frequency where non-ideal switches in the open state have increased series impedance. The default is 0.

Probe Signals

Switch conductivity

Conduction state of the switch. The signal outputs \(0\) if the switch is open, and \(1\) if it is closed.