Effacer les filtres
Effacer les filtres

If else then Simulink

2 vues (au cours des 30 derniers jours)
Darka
Darka le 1 Avr 2014
Déplacé(e) : Sabin le 18 Déc 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

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 1 Avr 2014
Déplacé(e) : Sabin le 18 Déc 2022
x1>60 | x2<90
x1<60 | x2>90
Your two expressions can be true at the same time

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by