This page contains a few code examples that can be used to explore and test imperix’s automated code generation workflow using PLECS.

These examples are meant to be loaded on a B-Box RCP (controller), possibly using a Plexim RT-Box as a HIL simulator for the plant. Both devices can be conveniently connected via a suitable hardware interface.

Additional code examples are provided in the different application notes.

The following files have been adapted - with permission - from existing code examples developed and published by Plexim GmbH.

Automated code generation from PLECS is supported from ACG SDK 3.5 and above, which can be download here:

Software resources

H-bridge converter

Single-phase inverter

Vector-controlled induction machine

Boost converter

  • No labels