# I have replicated a circuit of an AC-DC-DC converter in PLECS but I'm getting different waveforms

**URL:** <https://forum.plexim.com/t/i-have-replicated-a-circuit-of-an-ac-dc-dc-converter-in-plecs-but-im-getting-different-waveforms/1331>\
**Category:** PLECS\
**Tags:** plecs-blockset\
**Created:** [March 12, 2024, 6:50am UTC](https://forum.plexim.com/t/i-have-replicated-a-circuit-of-an-ac-dc-dc-converter-in-plecs-but-im-getting-different-waveforms/1331 "2024-03-12T06:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Obiora](https://avatars.discourse-cdn.com/v4/letter/o/a5b964/32.png) [@Obiora](https://forum.plexim.com/u/Obiora)\
**Post date:** [March 12, 2024, 6:50am UTC](https://forum.plexim.com/t/i-have-replicated-a-circuit-of-an-ac-dc-dc-converter-in-plecs-but-im-getting-different-waveforms/1331/1 "2024-03-12T06:50:03Z")

</div>

I have modelled a bidirectional AC-DC-DC converter in Simulink and it works great, I now want to model the losses in the MOSFETS using PLECS therefore, I have put the converter itself in a PLECS circuit and the control has been left outside in the Simulink environment. The waveform of the dc bus voltage is not what I expected, the battery current remains 0 the whole time, and the grid current waveform is also not what I expected despite seemingly inputting the same parameters in both versions. The files to both versions have been attached

---

<div class="post-metadata">

**Author:** ![Bryan\_Lieblick](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/bryan_lieblick/32/10_2.png) [@Bryan\_Lieblick](https://forum.plexim.com/u/Bryan_Lieblick)\
**Post date:** [March 15, 2024, 1:15pm UTC](https://forum.plexim.com/t/i-have-replicated-a-circuit-of-an-ac-dc-dc-converter-in-plecs-but-im-getting-different-waveforms/1331/2 "2024-03-15T13:15:24Z")

</div>

There are no files attached, but it sounds like an implementation error.
