Hi everybody,
I'm working on the MPPT control through c-script for a DC-DC converter (PLECS Standalone). The code is implemented but I don't understand when i choose a sample time of 1/(switch frequency) (setup of the c-script-block) the model doesn't work. I reduced the sample time at 0.05 and i have the good behaviour. As shown in the figure, the top signal represents the adapted voltage of the pv panel when a irradiation change occur and a sample time of 0.05.
The next figure shows the voltage signal when i change the sample time of the c-script setup (1/switch frequency)
Thank you for your help and response
Cheers