Double Switch
Purpose
Changeover switch with two positions
Library
Electrical / Switches
Description
This changeover switch provides an ideal short or open circuit. If the input signal is zero, the switch is in the upper position. For all other values the switch is in the lower position.
Parameters
- Initial position
Initial position of the switch. The switch is initially in the upper position if the parameter evaluates to zero. For all other values it is in the lower position. 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 position
State of the internal switches. The signal outputs \(0\) if the switch is in the upper position, and \(1\) if it is in the lower position.