How to model MPPT technique with PID controller
I am also doing a project like yours. And I am having the same problem as you. Btw i have progressed a little bit. You can use simulinks function block to write the code. You shall find it under used defined function block. You also have to use memory block so that previous samples data is available to you. You can use delay too. But then you have to specify sampling frequency. First with the use of zero order hold block take sample of current and voltage- feed them to memory block,then calculate dv,di ,feed them to simulink used defined function ,add the PID to the output of function. One thing though, for PID tuning you may need state space model of your converter.