Question 2 Complete the following unfinished MATLAB code. % DC motor transfer function G1 = tf([0.8 1.6],[1 4 7.2]); % Cable reel transfer function G2 = tf([25],[1 1]); % System transfer fuction G=G1*G2 %% PID - Reaction curve method % Compute the step response of G and save it in [Y2,T2] [Y2,T2] = step(Tcl); % Compute the derivative of the step response % Finds the inflection point [M,I] % Time that the inflection point was observed % Magnitude of the step reponse at the inflection point % Gradient of the step reponse at the time of the inflection point % Find the X and Y intercepts % Compute the parameters for ZN PID tuning, i.e. "R" and "tau" % Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method. % Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error) % Obtain the transfer function of the PID controller. Use the command "pidstd". % Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl" % In the following line we use the command "step" to save the the step response in the variables "y" and "t" [y,t] = step(Tcl); % Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep" % In the following line we compute the steady-state error and save it in the variable "ess" ess = abs(1 - y(end))
Question 2 Complete the following unfinished MATLAB code. % DC motor transfer function G1 = tf([0.8 1.6],[1 4 7.2]); % Cable reel transfer function G2 = tf([25],[1 1]); % System transfer fuction G=G1*G2 %% PID - Reaction curve method % Compute the step response of G and save it in [Y2,T2] [Y2,T2] = step(Tcl); % Compute the derivative of the step response % Finds the inflection point [M,I] % Time that the inflection point was observed % Magnitude of the step reponse at the inflection point % Gradient of the step reponse at the time of the inflection point % Find the X and Y intercepts % Compute the parameters for ZN PID tuning, i.e. "R" and "tau" % Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method. % Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error) % Obtain the transfer function of the PID controller. Use the command "pidstd". % Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl" % In the following line we use the command "step" to save the the step response in the variables "y" and "t" [y,t] = step(Tcl); % Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep" % In the following line we compute the steady-state error and save it in the variable "ess" ess = abs(1 - y(end))
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
100%
Question 2
Complete the following unfinished MATLAB code.
% DC motor transfer function
G1 = tf([0.8 1.6],[1 4 7.2]);
% Cable reel transfer function
G2 = tf([25],[1 1]);
% System transfer fuction
G=G1*G2
%% PID - Reaction curve method
% Compute the step response of G and save it in [Y2,T2]
[Y2,T2] = step(Tcl);
% Compute the derivative of the step response
% Finds the inflection point [M,I]
% Time that the inflection point was observed
% Magnitude of the step reponse at the inflection point
% Gradient of the step reponse at the time of the inflection point
% Find the X and Y intercepts
% Compute the parameters for ZN PID tuning, i.e. "R" and "tau"
% Obtain the PID gains Kp, Ti, Td and N using the ZN tuning rules for the Reaction Curve method.
% Fine tune the gains Kp, Ti and Td to satisfy the control requirements (Peak time, overshoot, steady-state error)
% Obtain the transfer function of the PID controller. Use the command "pidstd".
% Obtain the closed-loop transfer function Tcl. Use the command "feedback" and save the result in the variable "Tcl"
% In the following line we use the command "step" to save the the step response in the variables "y" and "t"
[y,t] = step(Tcl);
% Use the command "stepinfo" to obtain the characteristics of the step response and save the result in the variable "assessStep"
% In the following line we compute the steady-state error and save it in the variable "ess"
ess = abs(1 - y(end))
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,