Skip to content

Latest commit

 

History

History

A simple discrete transfer function. Compiled with a 1st order low pass filter.

There are two example notebooks for Example 2.

  1. Simple Example - A simple low-level ctypes wrapper.
  2. Pythonic Example - Use Python syntactic sugar to create a high level TransferTF python class to interact with the model. Adds datalogging and pandas integration.

Example 2 also contains sample pytest tests in the tests directory. This demonstrates how you can use pytest to test Simulink models. Sample test results are shown shown in test_results.md.

  • For the tests example the model shared library is presented to tests as a pytest fixture defined in conftest.py