Lab02 Worksheet
Lab02 Worksheet
Lab 2
Introduction
In this lab you will apply a step input to three unknown systems. From the system responses, you will develop models for the systems based on your knowledge of 1st- and 2nd-order system characteristics. In part 2 of the lab you will use Matlab to control the input and output of a Simulink simulation, including creating multiple plots on the same page.
For each of the three systems, if the system appears to be first-order, estimate the systems time constant . If the system appears to be second-order, estimate the systems damped natural frequency d. Record your estimates on the Worksheet. Attach a sample calculation to the worksheet.
1 m
& & x
1 s
& x
1 s
x( t )
k
Change your Simulink model so that a Matlab m-file controls the parameters (m, c, k), the initial conditions, and the input magnitude and start time, and so that the output x(t) and the time vector t is returned to the Matlab workspace for plotting. In your simulations, select time spans such that all responses reach steady-state. Using the subplot command, put both figures described below on the same page. Attach a copy of your m-file and a copy of the two figures to the Worksheet. Figure 1 Step input, mag = 1, starting at t = 1 s. Four simulations: c = 0.3, 0.5, 0.7 and 1 N/m/s. Initial conditions (ICs) are zero, m = 1 kg, and k = 1 N/m. Plot all four responses (each with a different symbol) in a single figure; subplot(211). Include a legend and the title Fig 1: Step responses as damping varies. Figure 2 Step input, mag = 2.5, starts at t = 0 s. Use c = 0.5 N/m/s, m = 1, kg and k = 1 N/m. & (0) = - 2 . Response #1: x(0) = 0, x & (0) = 0 . Response #2: x(0) = -3, x & (0) = 2 . Response #3: x(0) = 3, x Plot all three responses (each with a different symbol) in a single figure; subplot(212). Include a legend and the title Step response with different ICs.
Lab 2 Worksheet
Part 1
System #1 Magnitude of step input Magnitude of steady-state response Static gain Apparent order of the system Characteristic (with units) second-order
d = =
System #2
System #3
first-order
second-order
d =
From the response shown, system #2 appears to be first-order. But the response shown might also be that of a second-order system. Explain.
Determine the natural frequencies by measuring the damped period for systems #1 and #3. Also find the damping ratios by either using the logarithmic decrement or the percent overshoot equation. Include a sample calculation to show your method. System #1 Natural frequency n Damping ratio System #2 n/a n/a System #3
From the information in the tables, create a mathematical model (ODE) for each system. Show your work. ODE model of system #1:
Part 2
Comment on the system responses in Figure 1 and Figure 2.
Attachments
1. 2. 3. 4. Attach a copy of your scope windows from the three unknown systems in Part 1. Attach a sheet of sample calculations from Part 1. Attach a copy of your m-file from Part 2. Attach a copy of your Matlab plots from Part 2.