Current Switch

SpiceSyntax


WYYYYYYY N+ N- VNAM MODEL <ON><OFF>

 

Additional Information

More details can be found in the HyperSpice chapter in Extended Definitions for Advanced Users.

Examples

.MODEL switchmod1 IT=1e-3

W1 1 2 vclock switchmod1 

The W-device is a Current controlled switch. Nodes 1 and 2 are the nodes between which the switch terminals are connected. The model name is mandatory while the initial conditions are optional. The controlling current is that through the specified voltage source. The direction of positive controlling current flow is from the positive node, through the source, to the negative node.