Assistance with adapting DAB for RTBox HIL

Hi there,

I am trying to adapt the plant of my DAB for controller HIL. I am using the DAB component found in the component library and the offline simulation runs but when I tried to build to RTBox1 I get the error: The secondary terminals of dual_active_bridge/DAB Plant/DAB1 must be connected directly to a capacitor or voltage source.

However, when I remove any resistors that were connected along with the capacitor (C1 and C3) (see image), I am able to build to RTBox, but I get the red error light. Upon trying to run offline simulation again, I get a new error caused by the missing resistor: State discontinuity after switching.
The voltage across capacitor dual_active_bridge/DAB Plant/C3 is forced to jump from 800 to 0.

How can I solve this issue?

Thanks for all your help!

Hi Alyssa,

If you are able to share the model file that reproduces the error, it would make it much easier for us to determine what is happening.

Additionally, could you please let us know which versions of PLECS and the RT Box Target Support Package (TSP) you are using?

Hi Munadir,

I am using PLECS Version 5.0.4, and RTBox TSP 4.07. I attached the model as well. Thank you very much for your help.

dual_active_bridge.plecs (419.1 KB)