You are on page 1of 9

INTERNATIONAL ISLAMIC UNIVERSITY MALAYSIA KULLIYYAH OF ENGINEERING

DEPARTMENT OF BIOCHEMICAL-BIOTECHNOLOGY ENGINEERING

BTE 4225 COMPUTER SIMULATION IN BIOLOGICAL SYSTEM

MATLAB REPORT AND ASSIGNMENT THREE (SIMULINK)

RICCARAHMAN BINTI NASARUDDIN 0611866 SECTION ONE 17t AUGUST !00"

MATLAB SIMULINK# Process $%&'()t%*+ and model n! s "#e a$$l ca" on o% a ran!e o% so%"&are "ools "o anal'(e nd ) d*al *n " o$era" ons +or $rocess s"a!es, and "#e r rela" ons# $s & "# n "#e o)erall $rocessT# s rela" ons# $ ncl*des assess n! "#e reso*rce and *" l "' re.* remen"s a)a la/le %rom "#e #os" %ac l "'Once s m*la" ons +or models, are cons"r*c"ed0 $rocess en! neers and sc en" s"s can n)es" !a"e com$le1 and n"e!ra"ed / oc#em cal $rocesses and *n " o$era" ons0 & "#o*" "#e need %or e1"ens )e e1$er men"a" on or d sr*$" on "o e1 s" n! o$era" ons SIMULINK *ses a !ra$# cal *ser n"er%ace +GUI, %or sol) n! $rocess s m*la" ons- Ins"ead o% &r " n! MATLAB code0 &e s m$l' connec" "#e necessar' 22 cons33 "o!e"#er "o cons"r*c" "#e /loc4 d a!ram- T#e 22 cons33 re$resen" $oss /le n$*"s "o "#e s's"em0 $ar"s o% "#e s's"ems0 or o*"$*"s o% "#e s's"emSIMULINK allo&s "#e *ser "o eas l' s m*la"e s's"ems o% l near and nonl near ord nar' d %%eren" al e.*a" ons- A !ood /ac4!ro*nd n ma"r 1 al!e/ra and l*m$ed $arame"er s's"ems as &ell as an *nders"and n! o% MATLAB s re.* red-

E,AMPLE 1 Model "#e d %%eren" al e.*a" on d15d" 6 s n+", & "# n " al cons " on 1+7, 6 7- T#e s"e$s are as %ollo&s8 9- S"ar" s m*l n4 2- cl c4 ne& & ndo& n s m*l n4 l / /ro&ser :- so*rces l / ;< dra! =s n &a)e> /loc4 "o model & ndo& 4- con" n*o*s /loc4 l / ;< dra! n"e!ra"or /loc4 5- Cl c4 s n4 /loc4 ;< dra! sco$e /loc4 ?- Connec" all "#e /loc4s @- Ao*/le cl c4 sco$e B- C#oose s m*la" on8s"ar" %rom model & ndo& RESULTS 1# T - &*.-( .%)/0)&

1 s

Sine Wave

Integ rator

Scop e

!# S1*2- 3%+.*3

COMMENTS 9- I %o*nd d %% c*l" es "o ed " "#e $ro$er" es o% % !*re n sco$e & ndo& s*c# as8 To ! )e "#e la/els %or 1;a1 s and ';a1 s To adC*s" "#e /ac4!ro*nd color o% "#e % !*re 2- I also d dnD" 4no& #o& "o co$' "#e res*l" %orm sco$e & ndo& d rec"l'TRY OUT 1# U$%+/ &'4 5(*16 t* 1*&5%+- t3* %+2't$ 7*0 *+- *'t2't

Sine Wave

Scope

1 s

Integrator

R-$'(t

!# U$%+/ 1*+$t)+t8 .-0%9)t%9- )+. 20*.'1t 5(*16$

du/dt Sine Wave Derivative Product 6 Constant Scope

R-$'(t

C*&&-+t$: 9- A" % rs" I &o*ld l 4e "o "r' %*nc" on /loc4 /*" I co*ld no" ma4e "- I do no" 4no& #o& "o mod %' "#e $arame"ers o% "#e %*nc" on2- I do no" 4no& #o& "o adC*s" "#e scale and "#e !r d )al*es o% "#e a1esE,AMPLE !: Con)er" n! Cels *s "o Ea#ren#e " - To model "#e e.*a" on "#a" con)er"s Cels *s "em$era"*re "o Ea#ren#e " TE 6 F55+TC, G :2 E rs"0 cons der "#e /loc4s needed "o /* ld "#e model8 9- A Ram$ /loc4 "o n$*" "#e "em$era"*re s !nal0 %rom "#e So*rces l /rar' 2- A Cons"an" /loc4 "o de% ne a cons"an" o% :20 also %rom "#e So*rces l /rar' :- A Ga n /loc4 "o m*l" $l' "#e n$*" s !nal /' F550 %rom "#e Ma"# l /rar' 4- A S*m /loc4 "o add "#e "&o .*an" " es0 also %rom "#e Ma"# l /rar' 5- A A s$la' /loc4 "o d s$la' "#e o*"$*"0 %rom "#e S n4s l /rar'

T - &*.-( .%)/0)& :

9/5 Ramp Gain 32 Constant dd Display 50

E,AMPLE ;
x+t , = 2 x +t , + u +t , To model "#e d %%eren" al e.*a" on &#ere *+", s a s.*are &a)e & "# an am$l "*de o% 9 and a %re.*enc' o% 9 rad5sec- T#e In"e!ra"or /loc4 n"e!ra"es "s n$*" 1H "o $rod*ce 1- O"#er /loc4s needed n "# s model ncl*de a Ga n /loc4 and a S*m /loc4- To !enera"e a s.*are &a)e0 *se a S !nal Genera"or /loc4 and selec" "#e S.*are Ia)e %orm /*" c#an!e "#e de%a*l" *n "s "o rad ans5sec- A!a n0 ) e& "#e o*"$*" *s n! a Sco$e /loc4- Ga"#er "#e /loc4s and de% ne "#e !a n

T - &*.-( .%)/0)&

Si!nal Generator

dd $2 Gain

" s #nte!rator

Scope

T - 0-$'(t %+ $1*2- 3%+.*3

M*.%7%1)t%*+ t* $*&- 2)0)&-t-0$ C#an!ed "#e !a n $arame"er- +%rom ;2 "o ;97, Res*l"8

ASSIGNMENT ;: PID controller tuning using practical Ziegler-Nichols technique. Cons der "#e %ollo& n! "# rd order $rocess

T*ne a PIA con"roller *s n! a $rac" cal me"#od and "#e J e!ler;N c#ols "*n n! r*les- T#e me"#od s o%"en *sed n nd*s"r' /eca*se " does no" re.* re 4no& n! "#e $rocess "rans%er %*nc" on- I" s /ased on "#e s m lar dea as "#e JN me"#od descr /ed n "#e lec"*re0 & "# "#e d %%erence "#a" "#e *l" ma"e !a n and *l" ma"e $er od are de"erm ned e1$er men"all'0 no" anal'" call'T - &*.-( .%)/0)&:

" %ut" 6 2s&" Step dd " *s&" " 6s&"

'rans(er )cn2 'rans(er )cn" 'rans(er )cn Scope

R-$'(t$: