Peak current control of DAB on RT-Box

Hello,

I have a problem with the waveforms of the DAB converter generated by the RTbox 1. In my HIL simulation, I receive control PWM (100 kHz) signals from the LAUNCHXL-F280049C development kit using the PWM capture block. I feed the measured signals to the ADC pins of the kit via the Analog out block. In the case of control using single-phase shift, the control worked. When I outputted the current waveform through the inductor to the analog output and displayed it on the oscilloscope, I found that the current through the inductor of the DAB converter is delayed by 2.76 microseconds (see the oscilloscope screenshot). For this reason, I could not test the control using the peak current technique, since the PWM signals of the secondary full bridge depend on the current waveform through the inductor. I want to ask if this is caused by a bad simulation/coder setting or is the problem elsewhere? Thank you for your answer.