Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/dpv/ThreeDPV.m4

raw
1 .PS
2 # ThreeDPV.m4: three-phase oscillator
3 cct_init(svg_font(sans-serif,11bp__))
4
5 define(`section',`[ I: Here
6 resistor(right elen_*0.75); llabel(,R/2)
7 T: dot
8 line down dimen_/2 then right_ dimen_/4
9 Amp: opamp(,,,body=shaded "goldenrod") with .In1 at Here
10 line left dimen_/4 from Amp.In2 then down dimen_/4; G: ground(,,)
11 resistor(from T to (Amp.Out,T)); llabel(,R)
12 O: dot
13 { arrow up dimen_*0.5 then right dimen_/4 up dimen_/4
14 "`$1'" above }
15 line to Amp.Out
16 dot(at T+(dimen_/4,0)); line up dimen_*0.6
17 capacitor(right_ Amp.Out.x-Here.x-dimen_/4,C); llabel(,2C)
18 line to (Here,T); dot
19 ]')
20
21 A: section(svg_symbol(0&`#'176;))
22 B: section(svg_symbol(120&`#'176;)) with .I at A.O
23 C: section(svg_symbol(-120&`#'176;)) with .I at B.O
24 move right 22pt__ from C.O
25
26 ground(at (A.I,A.G)+(dimen_/3,0),,)
27 P:potentiometer(down_ dimen_/2,,0.75,dimen_/2) with .End at Here
28 line from P.Start to (A.I,P.Start); dot
29 resistor(up_ dimen_*0.75 from P.T1)
30 line to A.T
31
32 dot(at B.Amp.Out+(dimen_/3,0)); { "svg_it(V`'svg_sub(c))" at last [].n above }
33 resistor(down_ dimen_*0.75)
34 { dot; line right (C.T.x-Here.x)/2
35 reversed(`diode',up_ dimen_)
36 line to C.T }
37 resistor(down_ dimen_*0.75)
38 dot
39 line from C.O right dimen_/4 then down C.O.y-Here.y then to (A.I,Here) \
40 then to A.I
41
42 command "</g>" # end font
43 .PE