Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 38cf4a7a7a62d7600668e63b12fccace > files > 69

ng-spice-rework-examples-18-5mdv2010.0.i586.rpm

* Test circuit for pin.mod

*.include C:\Spice\tests\numparam\pin.mod
.include pin.mod

* Photodiode supply
Vbias 	psu  0  10V

* Light input is modeled by a voltage source that we can vary
Vlight	input  0  2mW

* The pin diode
Xpin  input cathode anode SIMPLE_PIN resp=0.7

* monitor resistor
Rmon  anode  0  1ohm 

* Quench restistor
Rq  psu cathode 1k

*.dc vlight 0 5mW 0.01mW

.dc vlight 0 10mW 0.01mW

.control
dc vlight 0 10mW 0.01mW
*write pintest.raw all
plot V(anode)
.endc

.end