National Instruments 370760B-01 Calculator User Manual


 
256 Chapter 6. Function Reference
Wperf = 100/makepoly([100,1],"s")
Wact = makepoly([0.5,0.05],"s")/makepoly([0.05,1],"s")
# Form the weighted interconnection structure
sysnames = ["plant";"Wperf";"Wact"]
sysinp = ["ref";"control"]
sysout = ["Wperf"; "Wact"; "ref-plant"]
syscnx = ["control"; ... # input to plant
"ref-plant"; ... # input to Wperf
"control"] # input to Wact
wghtic = sysic(sysnames,sysinp,sysout,syscnx,plant,...
Wperf,Wact)
# Design H2 controller
nctrls = 1
nmeas = 1
K2 = h2syn(wghtic,nmeas,nctrls)
# Form the weighted closed loop system and calculate
# its H2 norm.
wghtclp2 = starp(wghtic,K2)
h2norm(wghtclp2)?
ans (a scalar) = 2.78655
See Also
h2syn, hinfsyn, hinfnorm