Electronic – PSpice voltage controlled switch not switching

pspiceswitches

I am attempting to implement a simple voltage-controlled switch in a larger circuit design in PSpice. I am a student and have not yet worked with this component in the OrCAD suite. The switch is controlled by a pulse voltage source and should, if my design were correct, open between 400us and 450us as V2 falls from 1V to 0V. However, the switch remains closed. Can you see any flaws in my design which might be resulting in this error? I have attached the schematic of this section of the design as well as a transient analysis of the circuit. Please let me know if more information is required. The switch resistance is 1MOhm open and 1uOhm closed.

Switch Schematic

Transient Analysis

Best Answer

If the values for Ron and Roff are exactly as you wrote them to be, then you're in for a surprise: MOhm translates to milliΩ. SPICE is not case sensitive, so the distinction between milli and Mega is done by writing m (milli) and meg (Mega). The values, as they would be after the correction, are fine, just remember to not tempt the Devil by setting a ratio larger than 1e12; that's the recommended maximum. Also, units don't matter, they're silently discarded by the parser, but as long as you don't get errors, they can be added.