How do I calculate average losses for the semiconductors in my circuit?

Problem description: 

I have a model with some switches on a heat sink component and thermal lookup table data implemented. Using a probe component I see how to look at conduction and switching losses for a switch on the scope, but rather than the instantaneous losses, is there a way to look at the averaged losses over time?


The PLECS component library contains blocks in the Controls > Filters list that can be used to measure the average losses. The Periodic Average block is suited for determining average conduction losses of semiconductors while the Periodic Impulse Average will determine the average switching losses. By providing the appropriate loss signals to these blocks from a semiconductor using PLECS Probe blocks, averaged conduction, switching and total losses (via a sum block) can be easily calculated.