Skip to main content

SimulinkWrapper

SimulinkWrapper is a simple Python wrapper around Simulink that allows one to simulate an existing model in Simulink from Python. This is particularly useful for control systems design and implementation, as the control algorithms can then be implemented in Python, while the plant model is run by Simulink. This way, custom control systems making use of powerful Python libraries (e.g. machine learning libraries) can be tested on Simulink models. This frees the designer from having to devise a way to model complicated systems in Python (e.g. using nonlinear state-space models).

Keep in mind that this package uses the Matlab-Python engine to communicate with Matlab. The engine will have to be installed manually, as the version to install depends on the Matlab version used to obtain the Simulink models and run the simulations.

Installation

Using pip

The package may be installed using pip:

pip install simulinkwrapper

Using git

Alternatively, clone the repository:

git clone https://github.com/MiguelLoureiro98/simulinkwrapper.git

And then move into the cloned repository to install it locally:

cd simulinkwrapper
pip install .

Development dependencies can be installed by typing:

pip install .[dev]

Documentation

A dedicated website hosting the documentation will be released soon.

Licence

This project is licenced under the Apache 2.0 Licence.

Metadata

Release files for simulinkwrapper 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simulinkwrapper 1.0.2
File Size Uploaded
simulinkwrapper-1.0.2.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simulinkwrapper 1.0.2
File Interpreter ABI Platform
simulinkwrapper-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.8 kB

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page