Hi all. I need some help in State flow. I am trying to find out the maximum power that can be delivered by a solar panel in a day

Hi all. I need some help in State flow. I am trying to find out the maximum power that can be delivered by a solar panel in a day.I want to calculate the max Power value in state flow and update my value. I gave the inputs to the State flow as I and V from the solar panel. The power value changes as the voltage and the current changes as the irradiation given to the panel changes. So for a given number of changes, I want to calculate the maximum power delivered by the panel.

 Accepted Answer

in your state write this code, I guess your are familar with during.
du: power=max(power,u*i)
% u and i are input from simulink to your chart
% power is your output to simumlink from your chart

7 Comments

you can also calculate this maximum outside your chart, in your simmulink model
Thanks for your help Azzi Abdelmalek that helped me. I have one more doubt regarding this, can you please let me know how to find what is the corresponding voltage of the maximum power. I have continuous Voltage and current values from the panel and I multiplied them and got my max power, so can I find out at what corresponding voltage did my panel gave the max power ?
Ok, thank you. Please let me know as soon as you can. Thanks a lot for your help.
look at the model , it 's done in simulink, but it's possible to do it in your chart, I don't know if you are familiar with graphic function.

Sign in to comment.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!