14.02.2013 Views

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 3 / Sensors<br />

_ _<br />

The functional form of the individual elements in this interface model is,<br />

( ( ( ( , f ) ) ) )<br />

IF IF IF IF<br />

( t ) : = ϕ ϕ ϕ<br />

x ( t )<br />

y ϕ<br />

TD<br />

Q<br />

3.2-27<br />

LIM<br />

ZOH<br />

SN<br />

O<br />

Equation 3.2-33<br />

Range limiting is mutually exclusive with 2’s compliment wrapping shown<br />

in Figure 3-20. In the event that both are selected only the latter is applied.<br />

The number of time delay cycles is commensurate with the output rate (fO).<br />

1<br />

RANGE LIMIT<br />

[ SN_ILL , SN_IUL ]<br />

SN_B_28<br />

1<br />

RANGE WRAP<br />

[ SN_ILL , SN_IUL ]<br />

SN_B_29<br />

Figure 3-20 : Output Interface - Alternative Range Limiting Models<br />

The “range wrap” function referred to here for SIMULINK is defined in<br />

Figure 3-21.<br />

SN_IUL<br />

SN_ILL<br />

1<br />

Mux<br />

1<br />

WRAP.M<br />

MATLAB<br />

Function<br />

function [IF_O] = WRAP(IF_I)<br />

if IF_I(1) >= IF_I(2)<br />

IF_O = IF_I(1)-IF_I(2)+IF_I(3);<br />

elseif IF_I(1) < IF_I(3)<br />

IF_O = IF_I(2)-IF_I(1)-IF_I(3);<br />

else<br />

IF_O = IF_I(1) ;<br />

end<br />

return<br />

Figure 3-21 : MATLAB Function - WRAP.M<br />

1<br />

1

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

Saved successfully!

Ooh no, something went wrong!