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

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

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.