Task 1: Basic understanding of the system a) Obtain the unit step response of the given…
- User
Task 1: Basic understanding of the system a) Obtain the unit step response of the given open-loop transfer function: G(s) = (-0.0717s^3 + 1.684s^2 + 0.0853s + 0.0622) / (s^4 + 1.0604s^3 - 1.1154s^2 - 0.066s - 0.0512) b) Find the poles and zeros of G(s) and check if it has any poles in the right-half plane (indicating instability). Task 2: Making the system compatible for Bode plot based controller design a) Use MATLAB to plot the Nyquist plot of G(s). From the Nyquist plot, determine a suitable value of Kf such that the effective inner loop transfer function G̃(s) = KfG(s)/(1+KfG(s)) is stable. b) Plot the step response and pole-zero map of G̃(s) to verify its stability. c) Check if the step response of G̃(s) meets any of the three design criteria given. Task 3: Meeting the steady-state error criteria a) Assuming C(s) = C1(s)C2(s), with C2(s) being a Type-0 system, find C1(s) such that the closed-loop system has zero steady-state error for a step input reference. Task 4: Meeting the settling time and maximum overshoot criteria a) Obtain the Bode plot of H̃(s) = -C1(s)G̃(s) and find its gain and phase margins. b) Check if a simple proportional controller C2(s) = Kp can meet the settling time and overshoot specs. c) If not, determine the structure of C2(s) using the Bode plot of H̃(s) such that it meets the specs with stability. d) Tune the parameters of the selected C2(s) structure to meet the settling time (0.05 seconds) and maximum overshoot (20%) criteria. Task 5: Simulate the closed-loop control system a) Find the state-space model of the designed controller C(s) = -C1(s)C2(s). b) Find the state-space model of the open-loop plant G(s) using tf2ss(). c) Combine the controller and plant models to get the closed-loop state-space model. d) Write a MATLAB script simulator.m that simulates this closed-loop model for a given reference r(t) and disturbance ε(t) = A*sin(ωt) using ode45(). It should accept amplitude A, frequency ω, and initial conditions α(0), α_dot(0) as inputs and plot α(t). Deliverables:
report.pdf - Document all steps, justifications, plots, derivations. design_process.m - Relevant MATLAB codes for each task, well commented. simulator.m - The simulation script as per Task 5(d) instructions.
- Assistant
- User
solve task 1, give code if required
- Assistant
To solve Task 1, let's break it down into its two main components: obtaining the unit step response of the given transfer function (TF) and finding its poles and zeros to check for stability. I'll provide MATLAB code that accomplishes these tasks.
Task 1: Basic Understanding of the System
a) Obtain the unit step response
You want to see how the system responds over time to a unit step input. This will show you how the output evolves from an initial state to a new state due to a sudden change (step) in input. MATLAB's function can provide this visualization when given a transfer function.
- User
solve task 2
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.