Hi!
I’m trying to use the Space Vector PWM (3-Level)" block with RT Box 1. and I always have this error.
Variable-step discrete tasks are not supported with a fixed-step solver or a ‘Discrete state-space’ model.
How can I fix it?
thank you all.
Hi!
I’m trying to use the Space Vector PWM (3-Level)" block with RT Box 1. and I always have this error.
Variable-step discrete tasks are not supported with a fixed-step solver or a ‘Discrete state-space’ model.
How can I fix it?
thank you all.
The Space Vector PWM (3-Level) block from the PLECS library directly outputs switching pulses. It uses a specific timing scheme (Variable-step discrete) to ensure the timing of various switching events, which is not possible to execute on the RT Box.
For generating PWM signals with the RT Box, one should use the PWM Out blocks from the RT Box Target Support Package Library to ensure the highest PWM resolution. The input to the PWM Out block is the modulation index and therefore one should use a modulation index based space vector modulation scheme. The Three-level Grid-connected NPC Solar Inverter with LCL-filter and Active Damping demo model in the RT Box Demo Model Library highlights such an approach along with a reasonably detailed theoretic write-up. I recommend reviewing that implementation and applying it to your model.