Ra = 3; % Tahanan Jangkar [Ohm]
La = 0.00001; % Induktansi jangkar [Henry]
J = 0.000025; % Inersia [N.m.sec2/rad]
Ea = 2.2; % Tegangan jangkar [Volt]
Ia = 0.075; % Arus jangkar [Ampere]
w = (2*pi/60)*1000; % RPM
Kb = (Ea - (Ia*Ra))/w; % Kb = (Ea -IaRa)/w
Km = Kb;
B = (Km*Ia)/w;
[Y] = sim('Motor_DC_Armature_Controlled_2018.slx');