3 # This script creates the active loop for the background ngspice
4 # simulator, and creates buttons for various simulator controls.
6 # Labels wishing to access spice variables can use, e.g.:
7 # spice send "print TIME\[$STEP\]"
10 if {![catch {spice
break}]} {
13 after 500 ngsim
;# update at 1/2 second intervals