title: Simulating a sub-system in a Python (non real-time) simulation environment through a transfer function
body: <p>I am coding a dynamic system simulation (fixed step, non real-time; it runs on my desktop) and I want to model some of the system's components (e.g. filters...) through the tools made available by scipy.signal (e.g. dlsim). For those components, I know their representation in the classical form of transfer functions.</p>
  <p>With scipy.signal, it is pretty easy and straightforward to simulate the output of the transfer functions  &quot;statically&quot;, that is once the time and input vectors are already known; on the other hand, I couldn't find a way to compute it within each simulation step. My simulator also include some closed-loop controllers, thus the outputs change dinamically as the simulation moves forward.</p>
  <p>Any ideas?</p>
  <p>PS I found this thread which seems to be quite similar, but I must admit that I do not understand the solution given by the author...: <a href="https://stackoverflow.com/questions/53681891/how-to-simulate-one-step-to-a-transfer-function-in-python">How to simulate one step to a transfer function in python</a></p>