DIfferent responses for the same system

I have different reponses in simulation depending of wich RTBOX I choose in coder. If I choose the RTBOX 1 I get a much worse simulation than if i choose RTBOX 2. Does anyone now why is this and if can solve it?

Hi Alejandro, having a PLECS model would make it easier to debug what is happening.

Additionally, it would be helpful if you could provide:

  • PLECS version
  • RT Box TSP version

Best,

Munadir

The logical “NOT” put inline with the lower FET gate signal is incorrect. The PWM capture produces a floating point value between [0,1]. The logical NOT makes any zero value 1 and any non-zero value 0. This will introduce duty-cycle error on the lower FET.

Generate the complementary gate signal by using another PWM Out component with opposite polarity. See for example the H-Bridge Converter or Synchronous Buck Minimal Example demo models.

Additionally, the FlexArray solver of the RT Box 2 (if you are using it) will have a much smaller step size compared to the RT Box 1. This will be helpful if you have a higher switching frequency converter and will mask some of the effects of the introduced duty cycle error. The NOT logic in this scenario introduces a bit different behavior because the NOT logic is performed on the CPU.