blob: c9dbd1046735f97b77726c487f1424754270dbd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
* /home/fossee/updatedexamples/halfwave_rectifier/halfwave_rectifier.cir
.include D.lib
d1 in out 1N4148
r1 out gnd 1k
v1 in gnd sine(0 20 50 0 0)
* u2 in plot_v1
* u3 out plot_v1
.tran 10e-03 100e-03 0e-03
* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(in)
plot v(out)
.endc
.end
|