summaryrefslogtreecommitdiff
path: root/257/CH7/EX7.16/example_7_16.sce
blob: f648c5c5ef95d0f1e429b94760d1f56f94a602ea (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
q=poly([0 200 4 1],'s','coeff');
G=k/q //gain FACTOR=k
H=1
y=G*H //type 1

syms s
Kp=limit(s*y/s,s,0) //Kp= position error coefficient
Kv=limit(s*G*H,s,0) //Kv= velocity error coefficient
Ka=limit(s^2*G*H,s,0) //Ka= accelaration error coefficient

disp(Ka ,"Ka = ")
disp(Kv ,"Kv = ")
disp(Kp ,"Kp = ")

//for unit step input
A=1
Ess=A/(Kp + 1)
disp(Ess, "Ess for unit step input is ")

disp(A/Kv, "Ess for unit ramp input is ")