Hi,
I am trying to simulate a custom topology in rt Box. Since i am using custom topology i cant use nanostep model. I am using normal switch with digital input to sample PWM. I tested this with a simple model like boost converter and it works fine. But when i use topology with the number of switches to about 8 switches, It does not work. RT_box shows the simulation error. Is there any way to simulate custom topologies in RT_Box in HIL mode? I can share the file if that helps make it clearer.
Yes, please share your model file so we can provide clear feedback!
Hi Kris,
Here is the model file. it’s for a five level inverter.
(attachments)
five_level model.plecs (75.2 KB)
Is there any way to simulate custom topologies in RT_Box in HIL mode? I
To an extent, yes, but not for this particular topology. To have performant real-time models one needs to develop an equivalent sub-cycle average or Nanostep based implementation of the topology.
One can also use discrete components as you are attempting but you will quickly notice one of two limitations: 1) for high numbers of switching elements the number of switching combinations grows exponentially, creating very slow code generation and real-time model execution or 2) the model runs in real-time, but the accuracy is quite poor because the sensed switching signals and circuit topology are constant within an RT Box step, requiring the ratio of the switching period (Tsw) to RT Box step size (Ts_rtbox) to be extremely high (Tsw/Ts_rtbox > 100 to 1000).
In short, this topology is not a good fit for the RT Box.