As the title, the probe only realizes the power display of the component. It is not possible to display the real-time power of the calculation of my current system. I want to detect the maximum value of the current current and voltage, and then calculate the result of the input power, but I don’t Know how it can be achieved.
Leo,
I think I understand your question, but can you may be draw a simple block diagram of what you want to simulate and share a picture of it here?
Manu
the attachment is my circuit,and i want to let it be a close-loop using the power to control the Driving frequency,how to get it work?I am just a beginner of plecs.
halfbridge.plecs (20.7 KB)
Hi Leo,
You can get a periodic maximum value by using a State Machine block or a C-script block. See the attached file. It uses a State Machine block to implement periodic maximum. May be you can use this as a starting point.
Regards,
Manu
halfbridge_edited.plecs (26.4 KB)
Hi Leo,
Instead of detecting peak values, for a more robust and a less complex solution, you can use a periodic average block. See the attached model.
Regards,
Manu
halfbridge_periodicavg.plecs (21.3 KB)