Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Max/Min Control Simulink

Status
Not open for further replies.

19dan87

Newbie level 3
Joined
Apr 12, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,305
I am modelling the vibration of a 2 D.O.F system with damping in Simulink.

I want to set up control such that if the control value is between two values (max and min) then it sets the control value to the specified input but if it is outside the max and min interval then the control value is set to the max or min as appropriate.

eg.

Fd> Fmax , then set to Fmax
Fd< Fmin , then set to Fmin

If not set to Fd.

Fmax and Fmin will vary slightly throughout the simulation so can not use a max/min since they vary with time during the simulation.

Any ideas how it will be best to do this. Basically going to be three inputs into the block from the system which need to be evaluated and then the appropriate input set as the output.

I have tried IF blocks but they won't work properly for the simulation.

Thanks

Dan
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top