Ho to take the average of the inductor current?

Hi,

test.qsch (6.8 KB)

Switching frequency = 100kHz.
I want that blue to look like red, so to take the average of the inductor current:


I tried with idt, but seems to not work properly. How to do this?

See


test_AB.qsch (6.8 KB)

3 Likes

Do you have any idea from where it comes that error of 0.1A?

I think I found. If we put a lower value in b source then would be ok:
image

Using B- E- G- sources (and a few others) + Cblock open up a large potential for various useful analysis or control designs.