Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

How to use sub-cycle average model in offline simulations?

0 votes
26 views
Hello!

I want to use sub-cycle average model in offline simulations not in real-time simulations.

In help and IEEE trans. about sub-cycle, it assumes real-time simulations with FPGA.

Does it mean that we cannot gat time average values without oversampling by FPGA?

Sincerely
asked Jun 16 by shunM2 (12 points)

1 Answer

+1 vote
Please refer to the demo models included in the RT Box target support package.  There you will notice that both the offline and real-time models use the PWM Capture block and sub-cycle averaged switches. If you run the offline model and inspect the output of the PWM Capture component, you will notice it is a value on the range of 0 to 1.

In offline simulations the PWM Capture block averages the input signal over the "Averaging interval (offline only)" parameter.  This parameter is typically set equal to the discretization step size of the subsystem and models the FPGA oversampling and averaging behavior.
answered Jun 16 by Bryan Lieblick (125 points)
...