Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/extras/Highgain.m4

raw
1 .PS
2 # Highgain+.m4
3 sinclude(tst.dim)
4 s_init(Highgain)
5 darrow_init
6
7 fillval = 0.8
8 circlerad = 0.35/2
9 linewid = linewid*3/4
10
11 command "
12 \newcommand{\Ds}{D(s)}
13 \newcommand{\Gs}{G(s)}
14 \newcommand{\Hs}{H(s)}
15 \newcommand{\Ms}{M(s)}
16 \newcommand{\Ns}{N(s)}
17 \newcommand{\Ps}{P(s)}
18 \newcommand{\Qs}{Q(s)}
19 \newcommand{\Rs}{R(s)}
20 \newcommand{\Ss}{S(s)}
21 \newcommand{\Us}{U(s)}
22 \newcommand{\Ys}{Y(s)}
23 \newcommand{\Xs}{X(s)}
24 \newcommand {\mat}[1]{\left[\matrix{#1}\right]}
25 \newcommand {\adj}{\mathop{\hbox{adj}}\nolimits}
26 \newcommand {\coldim}{\mathop{\hbox{col dim}}\nolimits}
27 \newcommand {\colrank}{\mathop{\hbox{column rank}}\nolimits}
28 \newcommand {\column}{\mathop{\hbox{column}}\nolimits}
29 \newcommand {\diag}{\mathop{\hbox{diag}}\nolimits}
30 \newcommand {\trace}{\mathop{\hbox{trace}}\nolimits}
31 \newcommand {\image}{\mathop{\hbox{image}}\nolimits}
32 \newcommand {\kernel}{\mathop{\hbox{kernel}}\nolimits}
33 \newcommand {\opsim}[1]{\mathinner{\raise-.5ex\hbox{\scriptsize #1}\atop%
34 \raise1.5ex\hbox{$\sim$}}}
35 \newcommand {\order}{\mathop{\hbox{order}}\nolimits}
36 \newcommand {\rank}{\mathop{\hbox{rank}}\nolimits}
37 \newcommand {\rowdim}{\mathop{\hbox{row dim}}\nolimits}
38 \newcommand {\rowimage}{\mathop{\hbox{row image}}\nolimits}
39 \newcommand {\row}{\mathop{\hbox{row}}\nolimits}
40 \newcommand {\rowrank}{\mathop{\hbox{row rank}}\nolimits}
41 \newcommand {\zeros}{\mathop{\hbox{zeros}}\nolimits}
42 "
43
44 define(`vectorsize',
45 `{"$\phantom{\displaystyle `$1'}%
46 \atop{{\displaystyle /}\atop{\displaystyle `$1'}}$"\
47 `$2' }')
48
49 [
50 R: darrow(right linewid,,,,,,|-)
51 { "$R$" dabove(at R.start+(5pt__,0)) }
52 Sum: circle invis "$\sum$"
53 darrow(right_ linewid*5/4)
54 { "$E$" dabove(at last line) }
55 vectorsize(p,at 1/4 along_(last line))
56 Gain: shadebox(box "$G = \diag\mat{g_i}$" wid boxwid*1.5 ht boxht*0.75 )
57 darrow(,,,,,,!-)
58 { "$U^{\prime}$" dabove(at last line) }
59 Compensator: shadebox(box wid boxwid*1.5 "\sl Compensator" "$K(s)$")
60 darrow(right_ linewid*5/4,,,,,,!-)
61 vectorsize(m,at 1/4 along_(last line))
62 { "$U$" dabove(at last line) }
63 Plant: shadebox(box "\sl Plant" "$H(s)$" )
64 dline(right_ linewid*3/4 from Plant.e,,,,!-)
65 vectorsize(p,at last line)
66 Y: dtee(R)
67 {"$Y$" dabove}
68 darrow(right_ linewid*2/3,t)
69
70 dline(down boxht from Y,t)
71 dright
72 dline(to (Sum,Here),,t)
73 dright
74 darrow(to Sum.s)
75 "$-$" at Here+(0.10,-0.05)
76
77 circle at Sum
78 ]
79 # blockbox(N)
80 .PE