Lab 4 QUBE-Servo Bump Test Modeling Workbook (Student)
Lab 4 QUBE-Servo Bump Test Modeling Workbook (Student)
Lab 4 QUBE-Servo Bump Test Modeling Workbook (Student)
Topics Covered
• Model validation.
Prerequisites
Y (s) K
= (1.1)
U (s) τs + 1
The step response shown in Figure 1.1 is generated using this transfer function with K = 5 rad/V-s and τ = 0.05 s.
Figure 1.1: Input and output signal used in the bump test method
The step input begins at time t0 . The input signal has a minimum value of umin and a maximum value of umax . The
resulting output signal is initially at y0 . Once the step is applied, the output tries to follow it and eventually settles at
its steady-state value yss . From the output and input signals, the steady-state gain is
∆y
K= (1.2)
∆u
where ∆y = yss − y0 and ∆u = umax − umin . The time constant of a system τ is defined as the time it takes the
system to respond to the application of a step input to reach 1 − 1/e ≈ 63.2% of its steady-state value, i.e. for Figure
1.1
t1 = t0 + τ,
where
τ = t1 − t0 (1.4)
If we substitute input 1.5 into the system transfer function 1.6, we get:
KAv e(−st0 )
Ωm (s) = .
(τ s + 1)s
We can then find the QUBE-Servo motor speed step response in the time domain, ωm (t), by taking inverse Laplace
of this equation
( t−t0
)
ωm (t) = KAv 1 − e(− τ ) + ωm (t0 ),
Figure 2.1: Applies a step voltage and measures corresponding servo speed
1. Run the QUARC controller to apply a 2 V step to the servo. The scope response should be similar to Figure
2.2.
2. Plot the response in Matlab figure. For example, you can setup the scopes to save the measured load/disk
speed and motor voltage to the Matlab workspace in the variables data_wm and data_vm, where the data_wm(:,1)
is the time vector and data_wm(:,2) is the measured speed.
3. Find the steady-state gain using the measured step response. Hint: Use the Matlab ginput command to
measure points off the plot.
5. To check if your derived model parameters K and τ are correct, modify the Simulink diagram to include a Trans-
fer Fcn block with the first-order model in Equation 1.1, as shown in Figure 2.3. Connect both the measured
and simulated QUBE-Servo responses to the scope using a Mux block (from the Signal Routing category).
Build and run your QUARC controller. Attach a Matlab figure displaying both the measured and simulated
response in one plot, as well as in the input voltage.
Quanser Inc.
119 Spy Court
Markham, Ontario
L3R 5H6
Canada
info@quanser.com
Phone: 1-905-940-3575
Fax: 1-905-940-3576
For more information on the solutions Quanser Inc. offers, please visit the web site at:
http://www.quanser.com
This document and the software described in it are provided subject to a license agreement. Neither the software nor this document may be
used or copied except as specified under the terms of that license agreement. Quanser Inc. grants the following rights: a) The right to reproduce
the work, to incorporate the work into one or more collections, and to reproduce the work as incorporated in the collections, b) to create and
reproduce adaptations provided reasonable steps are taken to clearly identify the changes that were made to the original work, c) to distribute
and publically perform the work including as incorporated in collections, and d) to distribute and publicly perform adaptations. The above rights
may be exercised in all media and formats whether now known or hereafter devised. These rights are granted subject to and limited by the
following restrictions: a) You may not exercise any of the rights granted to You in above in any manner that is primarily intended for or directed
toward commercial advantage or private monetary compensation, and b) You must keep intact all copyright notices for the Work and provide the
name Quanser Inc. for attribution. These restrictions may not be waved without express prior written permission of Quanser Inc.