You may try using the Switch block. The Switch output between first input and third input based on value of second input. The second input could be the reference value, 'level'. The third input could be the "nominal_load" value. Check out the example Use of Simulation Time for the Control Port to further understand how the Switch block works.
Control strategy for a heating system
3 次查看(过去 30 天)
显示 更早的评论
Hello Everybody! I am new to Simulink modeling. Given the following problem: I want to control the heating of a house. Therefore, a top unit should be switched on (nominal load, no ramp up) as soon as the production of the main unit is above a certain level. How would you do this? Is it possible to set the output of a p-controller to a fixed value?
if main_unit < level:
top_unit = 0
else:
top_unit = nominal_load
end
Thank you very much for your help
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!