lecturenotes11_12 - Flow Control in Simulink November 12th,...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Flow Control in Simulink November 12 , 2008 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Flow Control Goto/From Blocks If/Elseif/Else Structures Switch/Case Structures 2
Background image of page 2
See slides from last class: Goto and From Blocks are added from the Signal Routing Library [A] Goto [A] From 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Algae Growth Model: Q dx/dt mu x R A dR/dt A A-muQ mu mu_max Amax mu_mx(q_qQo) 0.96 mu*Q .12 kr 2.9e-5 kQ 0.015 k 1 s dQ/dt Integ ScopeX ScopeR ScopeQ R*Amax 7.0E-7 Q0 1 s IntegratorX 1 s IntegratorR -1 Gain Divide1 Divide 6.67E-7 -Ax (mu-k)x 4
Background image of page 4
The Updated Algae Growth Model: Q dx/dt mu x R A dR/dt A A-muQ mu mu_max Amax mu_mx(q_qQo) 0.96 mu*Q .12 kr 2.9e-5 kQ 0.015 k 1 s dQ/dt Integ ScopeX ScopeR ScopeQ R*Amax 7.0E-7 Q0 1 s IntegratorX 1 s IntegratorR [Q_Qo] Goto -1 Gain [Q_Qo] From Divide1 Divide 6.67E-7 -Ax (mu-k)x 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
If/Else Statements The if/else (or if/elseif/else) block can be added from the Ports and Subsystems library The if/else structures also require an IF Action subsystem block Action In1 Out1 If Action Subsystem u1 if (u1 > 0) else If 6
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/25/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

Page1 / 16

lecturenotes11_12 - Flow Control in Simulink November 12th,...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online