You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your interest in ahkab! I'm looking at switch.py to try and get to the bottom of your missing hysteresis issue. On first pass, it looks OK. I'll try and reproduce in pure Python to see if it's a netlist parsing issue or something.
I implement the circuit above.
sw 0 out in 0 mysw
v1 in 0 type=pulse 0 1.0 0 0.5m 0.5m 0 1m
v2 net1 0 type=vdc vdc=3.3
r1 net1 out 1k
.model sw mysw vt=0.5 vh=0.4 ron=1 roff=1Meg
*.model sw mysw von=0.9 voff=0.1 ron=1 roff=1Meg
.tran tstep=100n tstop=3m
.plot tran v(in) v(out)
.end
Ver. 0.18
From the document, the resistance of the switch should changes from VT+VH to VT-VH (distance 2*VH)
However, the turn-on voltage is 0.9 and turn-off voltage is the same.
The hysteresis is not available.
The text was updated successfully, but these errors were encountered: