Clear Filters
Clear Filters

If else then Simulink

2 views (last 30 days)
Darka
Darka on 1 Apr 2014
Moved: Sabin on 18 Dec 2022
Hello,
want to use IF, ELSE, THEN statements in Matlab Simulink for this application.
I want to turn off the AC motor if the temperature in first tank is greater than 60 degrees OR the temperature in second tank is lower than 90 degrees.
The motor should work if the temperature in the first tank is lower than 60 degrees OR the temperature in the second tank is greater than 90 degrees.
Also, if AC motor had been working for some time and afterwards was turned off, it is not possible to turn it on earlier than after 15 minutes.
How to use Matalb Simulink blocks to organize such work of the system?
Best regards,
Darka

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 1 Apr 2014
Moved: Sabin on 18 Dec 2022
x1>60 | x2<90
x1<60 | x2>90
Your two expressions can be true at the same time

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!