Simulation Scripts

Controlling Simulations from Scripts

PLECS simulations and analyses can be run from a script, for example to sweep one or more parameters or post-process the simulation results and extract relevant information.

  • PLECS Blockset
    With PLECS Blockset the user can control PLECS via commands entered into the MATLAB console or with m-file scripts.
  • PLECS Standalone
    PLECS Standalone has a built-in scripting interface allowing easy control of single or multiple simulations at one time. The scripts use a syntax very similar to MATLAB.

  • External Interface
    Alternatively, PLECS Standalone can be configured as an XML-RPC server so the user can run simulations and retrieve the results from within other applications. Many scripting languages support XML-RPC out of the box, for example Python or Ruby.