z domain to delay difference equations and applying pid controller
    11 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    kruthika u
 am 2 Mär. 2023
  
    
    
    
    
    Bearbeitet: Sarvesh Kale
    
 am 6 Mär. 2023
            i want to convert z domain transfer function to time delay equations and then apply a discrete PID controller for it?
how can i code this?
0 Kommentare
Akzeptierte Antwort
  Sarvesh Kale
    
 am 6 Mär. 2023
        
      Bearbeitet: Sarvesh Kale
    
 am 6 Mär. 2023
  
      1.) convert z domain transfer function to time delay equations 
suppose you have the following Z transform 
sys = tf([1 2],[1 5 10],0.1,'Variable','z^-1')
So the above transfer function converts to the following equation in time domain 
y[n] + 5y[n-1] + 10y[n-2] = x[n] + 2x[n-1] 
the numerator of transfer function corresponds to the delays in input and the denominator polynomial represents the delays in the output 
2.)  How to apply a discrete PID controller ?
you  can use the following code snippet to generate the pid controller values 
sys =  tf(1,[1 1])
pidtune(c2d(sys,0.1),'pid') % c2d converts from continuous domain to discrete domain 
Thank you 
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu PID Controller Tuning finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

