if true % code
DrehzahlICE = 1000;DrehzahlEMB = 1724DrehzahlEMA = -258DrehmomentAchsesoll= 324DrehmomentICEmax=94DrehmomentAchseist=DrehmomentICEmax*1.54*2.64DrehmomentEMA = round(DrehmomentICEmax*0.53)Drehmomentbrauch=DrehmomentAchsesoll-DrehmomentAchseistLeistungEMA=(2*pi*DrehzahlEMA.*DrehmomentEMA)/60LeistungEMB=-LeistungEMA;DrehmomentEMB=(LeistungEMB*60)./(2*pi*DrehzahlEMB) if Drehmomentbrauch<0 & DrehzahlEMA<0 & DrehmomentEMB>0 Dm=abs(Drehmomentbrauch)+ abs(DrehmomentEMB*3.07*2.64)-(DrehmomentEMA*2.64)end
In this code (output)Dm=-13
but expected output is zero
That can be obtained by increasing first input i.e. DrehzahlICE=1000 to 1020
how can i take a feedback that Dm is not between -1 to 1
and DrehzahlICE should increase at the step of 1
Best Answer