In PSpice, you may use a current controlled switch , such as 'W' device ,or a voltage controlled switch, s
![operational amplifier - Voltage-controlled switch using op-amp - Electrical Engineering Stack Exchange operational amplifier - Voltage-controlled switch using op-amp - Electrical Engineering Stack Exchange](https://i.stack.imgur.com/qtGAP.jpg)
operational amplifier - Voltage-controlled switch using op-amp - Electrical Engineering Stack Exchange
![Making Switches in LTSpice : Circuit Configurations - Education - Engineering and Component Solution Forum - TechForum │ Digi-Key Making Switches in LTSpice : Circuit Configurations - Education - Engineering and Component Solution Forum - TechForum │ Digi-Key](https://global.discourse-cdn.com/digikey/original/2X/2/251420c10711631533a19222472c7e315f552108.png)
Making Switches in LTSpice : Circuit Configurations - Education - Engineering and Component Solution Forum - TechForum │ Digi-Key
![Strange voltage controlled switch behavior - Simulation, hardware & system design tools forum - Simulation, hardware & system design tools - TI E2E support forums Strange voltage controlled switch behavior - Simulation, hardware & system design tools forum - Simulation, hardware & system design tools - TI E2E support forums](https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/234/divider1.png)