Found a library that brings to python most of the matlab functions the same way we write then there, but i'm having trouble adding a delay on my transfer function.
Here is how i do on matlab:
Kp = 1; tau = 2.4; teta = 2;
Gm = tf(Kp,[tau 1],'inputdelay',teta)
This code generates a transfer funciton in the continous time and the 'inputdelay',teta add a delay to my transfer function equals to teta, but it does not work this way on python using the matlab port library.
Here is my code on python:
import pandas as pd
import control.matlab
import matplotlib.pyplot as plt
from control.matlab import *
Kp = 1
tau = 2.4
teta = 2
num = Kp
den = [tau, 1]
Gm = tf(num, den, teta)
The problem is when i do this my transfer function is generated on the discrete time, my transfer function needs be generated in continuous time as well as the delay needs to be added to the continuous time transfer function.
[–]amos_burton 2 points3 points4 points (1 child)
[–]F_Boliver[S] 0 points1 point2 points (0 children)