I'd like the simulate the beahviour of a LLC converter using the RT-Box 1. For this purpose I'm using the full-bridge LLC model with full-bridge secondary rectification offered by PLECS with the idea of using the sub-cycle average model with averaging time of 1us (which will be the time step used by the simulator).
I am a problem right now:
The control signals are the relative on-times of the IGBTs with values between 0 and 1. They can be seen as the duty cycles of the individual IGBTs during the simulation step. They are computed by periodically averaging the digital gate signals over a fixed period of time. The problem is that the LLC is controlled in frequency and the duty-cycle is fixed @50%, hence the model doesn't seem to be suitable for this kind of purpose. Am I missing something?
Also, even if I tried to build the project, I obtain an error regarding an "algebraic loop". This makes me think that the model is not suited for real-time simulation? Unless I fix this algebraic loop manually of course (maybe by inserting a "Memory" block where needed?)
I'm attaching the simulation.