• +44 (0)1793 784389


Run your Processor in the Loop

The PLECS PIL package is a complete solution for Processor-In-the-Loop (PIL) simulations with PLECS Standalone or PLECS Blockset. With PLECS PIL you can execute control code on actual embedded hardware tied into the virtual loop of a PLECS model. Ready-to-use framework libraries and sample applications are provided. This makes it easy to integrate PIL functionality into your projects.

Processor In the Loop (PIL)

The PIL approach executes the control algorithms on the real embedded hardware. Values calculated by the simulation tool are used as inputs to the embedded algorithm instead of output from the actual sensors of the power circuit. Similarly, outputs of the control algorithms executing on the processor are fed back into the simulation to drive the virtual environment. Note that SIL and PIL testing are also relevant when the embedded code is automatically generated from the simulation model.

Software In the Loop (SIL)

Engineers developing embedded control algorithms often test code, or portions of code by executing it inside a circuit simulator. This can also be easily done with a C-Script or DLL block. This approach is referred to as Software-in-the-loop (SIL). A SIL simulation compiles the embedded source code for the native environment of the simulation tool (e.g. Win64) and executes the algorithms within the simulation environment.

PIL versus SIL

A major advantage of PIL over SIL is that during PIL testing, actual compiled code is executed on the real MCU. This detects platform-specific software defects such as overflow conditions and casting errors. PIL testing does not execute the control algorithms in true real-time. However, control tasks do execute at the normal rate between two simulation steps. Therefore, PIL simulation can be used to expose and analyse potential problems related to the multi-threaded execution of control algorithms, including jitter and resource corruption.

What is included in a PIL package?

  • Specialised PIL block
  • Target Manager
  • Extensive library of high-fidelity peripheral models.

Supported Embedded Processors

  • Fixed-point F280x/1x
  • Piccolo F2802x/3x/5x/6x
  • Delfino F2833x
  • Concerto F28M3x

Useful documents


Power supplies


Motor Drives


Processor In The Loop (PIL)




Solar Power


Wind power

More Information?

Telephone +44 (0)1793 784389 or email: sales@ppm.co.uk