create a loop function for temperature and the heater
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
for example i have this code:
%setpoint (degC)
t1_sp = 35;
for i = 1:399
tic;
if i==5
disp('Turn on heater 1')
ht1 = 100;
ht2 = ht1;
h1(ht1);
h2(ht2);
end
the heater will start to turn on after 5 seconds until it reach the setpoint temperature. i want the heater to slowly increase from 0 until it reach the setpoint.
Réponses (0)
Voir également
Catégories
En savoir plus sur ThingSpeak dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!