summaryrefslogtreecommitdiff
path: root/Examples/FullwaveRectifier_SCR/FullwaveRectifier_SCR.cir.out
blob: 2bc6d6d7e0948c7d9f3f6cb992c8616555596d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
* /home/fossee/updatedexamples/fullwaverectifier_scr/fullwaverectifier_scr.cir

.include scr.sub
.include D.lib
x1 gnd pulse out2 scr
v1  in1 in2 sine(0 200 100 0 0)
v2  pulse gnd pulse(0 5 2m 0 0 1m 5m)
d1 in1 out1 1N4148
d3 in2 out1 1N4148
d2 gnd in1 1N4148
d4 gnd in2 1N4148
r1  out1 out2 100
* u1  in1 in2 plot_v2
* u3  pulse plot_v1
* u2  out1 out2 plot_v2
.tran 20e-06 20e-03 0e-03

* Control Statements 
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(in1,in2)
plot v(pulse)
plot v(out1,out2)
.endc
.end