summaryrefslogtreecommitdiff
path: root/FullwaveRectifier_SCR/FullwaveRectifier_SCR.cir.out
blob: 95c5fbd2f671b283d3d5a790359903774805819c (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
* /home/fossee/updatedexamples/fullwaverectifier_scr/fullwaverectifier_scr.cir

.include scr.sub
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 d
d3  in2 out1 d
d2  gnd in1 d
d4  gnd in2 d
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