Quickstart guide

Installation

Currently, the package is not available the Python package index (PyPI), and must be installed manually. To do so, create a new folder, change to the new folder and clone the repository:

git clone https://github.com/mtguerreiro/plecsutil .

Alternatively, it is also possibly to simply download the repository from GitHub without using git. Simply download the repository, unzip it, and navigate to the new folder.

To install plecsutil, run

python -m pip install -e .

This installs plecsutil in editable mode. To update plecsutil with git, simply pull the changes from the remote repository.

Examples

Try plecsutil with the examples provided in the examples page. The examples show how to run PLECS simulations with different model parameters, multiple controllers, and how to save and load simulation results.

Note

Don’t forget to enable the RPC interface in PLECS before running the examples, otherwise Python will not be able to connect with PLECS. To do so, open PLECS preferences, and in the “General” tab, make sure the “RPC interface” option is ticked, and the port is 1080.