Accumulate variable in simulink
3 views (last 30 days)
Show older comments
Hi all,
Actually I'm trying to apply a temperature control. Initially these temperatures have a difference about 30 units. Then, the control has to apply more power or less to move closer both temperatures.
I've done this using PI control and everything works perfect. Now I'm using fuzzy control. Fuzzy matrix is configured when temperatures difference is positive this control returns +1 and when it's negative it returns -1. I want this number to accumulate in time over a variable (which sets the power to the transfer function). On matlab this is:
variable=variable+fuzzy_result.
So what I want is to initiate the simulation with variable=0. As time goes by this variable accumulates the result from fuzzy block continuously. How can I achieve this in Simulink?
Thanks in advance, David.
2 Comments
Ocean Blue
on 27 May 2014
Hello,
What type of block did you use here as I am facing the same problem.
Many Thanks.
Answers (0)
See Also
Categories
Find more on Fuzzy Logic in Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!