Optimal decimation to Log Simulation Data
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!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! 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! power_electronics_control MATLAB Answers — New Questions