Optimal decimation to Log Simulation Data

조회 수: 10 (최근 30일)
Hassan Ali
Hassan Ali 2025년 5월 18일
답변: Yifeng Tang 2025년 7월 30일
Hello everyone,
I have a Inverter model and I want to calculate its switching losses, although I can use MATLAB function ee_getPowerLossSummary, but I want to implement my own power loss analysis in post-processing. If I modulate the inverter at 5kHz, the switching event happens every 200mcicrosecond, and if I want to log simulation data in workspace, what should be the decimation keeping in mind these things.
  • I am using a variable step solver, because I couldn't use fixed step with N-channel MOSFTET, where PWM is provided by the Three-phase Two-Level PWM generator with sample time (1/10*Fsw).
  • If I run the simulation for 7 seconds only, the total step sizes could be up to 7M, keeping in mind the step size of 1microsecond.
Is there any way to run that model with fixed-step solver, or what should be the decimation so that my simulation speed is optimal as well as I can capture the swiching events.
Looking forward to hearign from the experts.
Thank You!

답변 (2개)

Ravi
Ravi 2025년 5월 18일

Instead of taking data from model, you can write a live script. Pass on the test output values and prepare calculations.

As per the asked operating point, it have to calculate the power losses. You can refer to MOSFET manufacturer website to find relative calculations


Yifeng Tang
Yifeng Tang 2025년 7월 30일
If you put a time vector in the "Data Import/Export" - "Save Options" - "Produce Specified Output Only" - "Output Times", you should be able to get values at just those time. I suppose it would work for you?

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Converters (Low Power)에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by