29.09.2014 Views

Casestudie Breakdown prediction Contell PILOT - Transumo

Casestudie Breakdown prediction Contell PILOT - Transumo

Casestudie Breakdown prediction Contell PILOT - Transumo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Alarmbefore = 0;<br />

end<br />

end<br />

end<br />

%-----The Same Calculation with self defined Limits-----<br />

%-----(Ignore Alarms after Dooropenings in Offset Time)-----<br />

%Contains: [Date, Type of Alarm, Duration, Maximum Temperature]<br />

AlarmsDLNoDoor = [];<br />

Alarmbefore = 0;<br />

Duration = 0;<br />

maxtemp = 0;<br />

for i = (start + DoorOffset):length(interpolation(:,1))-1;<br />

%High-Temperature Alarm<br />

if (interpolation(i,2) >= upperLimit) & (Alarmbefore == 0);<br />

%Only, if there was no dooropening...<br />

if sum(interpolation(i-DoorOffset:i+1,3)) == 0;<br />

%Get Duration<br />

k = i;<br />

while (k =<br />

upperLimit);<br />

k = k + 1;<br />

end<br />

Duration = k - i;<br />

maxtemp = max(interpolation(i:k,2));<br />

AlarmsDLNoDoor = [AlarmsDLNoDoor; [interpolation(i,1), 1,<br />

Duration, maxtemp]];<br />

end<br />

Alarmbefore = 1;<br />

Duration = 0;<br />

maxtemp = 0;<br />

%Low-Temperature Alarm<br />

elseif (interpolation(i,2)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!