Real time PI controller

Hi
I am doing a project where I have to control a real battery with a PI controller. I have been given some Java and MatLab code, which together implements a new set of MatLab commands, that will directly control the power output of the battery.
With the new commands, I can for example write:
Battery.setP(5)
And the real life battery will be dicharged with 5kW of power, or I can write:
Battery.getACvoltage.getValue()
And I will get the real voltage measurements, from the battery.
But now I want to control the power of the battery automatically with a PI controller. Is there anyway I can do this with simulink? Or do I have to implement the PI controller manually as MatLab code? Because as I see it, simulink does not work in real time, but only simulates a system over a given time period. That is not what I want. I want to measure the real time voltage values, send them trough a PI controller, and then send new power commands to the battery, automatically, and in real time. How can I do this?
I have inserted a sketch of the PI controller
thx.
Regards Adam

2 件のコメント

C.J. Harris
C.J. Harris 2015 年 5 月 5 日
編集済み: C.J. Harris 2015 年 5 月 5 日
How can you 'set' the output power of your battery? It's that determined by how much current your circuit is drawing?
Also, if you can already 'set' the power output - what exactly do you want to control?
Adam Klingest
Adam Klingest 2015 年 5 月 5 日
Well, the battery is connected to the grid. it is not a small battery. i just write the command in matlab and the hardware controller will make sure that the battery inverter delivers the power to the grid. Don't ask me how. i just give the command in matlab, and the hardware controller will make sure that the battery inverter delivers the commanded power. I want to control the voltage at a special node in the grid. this voltage is depended on how much I charge/discharge the battery.

サインインしてコメントする。

回答 (1 件)

KL
KL 2015 年 5 月 5 日

0 投票

You are talking about harware implementation. Check here to know more

カテゴリ

ヘルプ センター および File ExchangeEnergy Storage についてさらに検索

質問済み:

2015 年 5 月 5 日

コメント済み:

2015 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by