Example 2: discrete_tf-python_class.ipynb
A simple discrete transfer function. Compiled with a 1st order low pass filter.
There are two example notebooks for Example 2.
- Simple Example - A simple low-level ctypes wrapper.
- 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
pytestfixture defined inconftest.py
