Dq transformation in HIL to HIL Simulation oscillated

Hello plecs support team,
Currently I design the grid forming inverter in plecs to see the dynamics response by realtime hil to hil simulation using RT Box 2. When I simulate the models in offline, the dq transformation showing the correct results in fig 1. However, in realtime simulation hil to hil showing different results. Fig. 2 shows that dq transformation are not in correct results. There are an oscillation in frequency 50 Hz. Furthermore, my inverter models is average models without switching operation.

How could the discrepancy happens between hil to hil simulation and offline simulation?


Fig 1. Current pcc measurements in dq frame [offline simulation]


Fig 2. Current pcc measurements in dq frame [hil to hil simulation]

Hi Lukman

You also reached out to the official PLECS support channel. I will reply to you via e-mail and then post a solution here in the forum.

Best regards,
Lino

Dear Mr Lino,

Thank you for explaining the root cause problems and providing the solutions.

Best regards,
Lukman