The objective of this lab is to review of the behavior of second-order systems. Students will use gain a better understanding of the importance system identification. Students will also develop a hands-on understanding of the concept of hardware gain and why it will play a crucial role in controller design. System Identification will be implemented in LabVIEW using the System Identification Toolkit.
System identification for the rectilinear plant
Objectives
Review of the behavior of second-order systems
Understand the importance of system identification
Understand the concept of hardware gain and why it will play a crucial role in controller design
Pre-lab
Derive the equations of motion for the 1DOF spring-mass system with friction damping shown below and find the transfer function. Simulate the unforced, natural response in LabVIEW to an initial displacement of
(look for the Initial Response function in the Control Design Toolkit). Determine the natural frequency from the plot. Use the following parameters:
Lab procedure
Power on the PXI, and while it's booting up configure the plant as explained in the next step.
Clamp the second and third mass carriages, and attach the medium stiffness spring between the first and second carriage as shown in Fig. 2. Secure four
brass weights to the first and second carriages.
Start LabVIEW on your host PC and target the RT system.
Open the
Lab 2 - Rectilinear System Identification.vi file, enter a loop time of 0.005 seconds, and then run the VI. Also, turn on the amplifier now.
Reset the encoders if necessary and enter the parameters to execute a zero amplitude step with a dwell time of
. Prepare to manually displace the first mass carriage. When you are ready, execute the step command, and manually displace the first carriage approximately
,
then release it. Observe the natural response of the carriage, and wait for the system to finish executing the trajectory and acquiring the data.
Recall that for underdamped systems, the damped natural frequency is related to the undamped natural frequency through the following relationship:
and it follows that
Therefore, for light damping (small values of ζ)
For the purposes of plant identification, you may assume that the damping due to friction in the system is sufficiently small to satisfy the above condition.
Plot the encoder 1 position data and calculate the natural frequency of this system in both
and
. Call this value
(the subscript
denotes mass #1 trial #1). Use only oscillations with amplitude greater than 1000 counts in your calculation. This is because smaller amplitudes start to become dominated by nonlinear friction effects.
Remove the four brass weights and repeat steps 5 and 6 to obtain
for the unloaded carriage. Decrease the execution time if necessary.
Measure the initial cycle amplitude
and the last cycle amplitude
for the n cycles measured in Step 6. Using relationships associated with the logarithmic decrement find the damping ratio (call it
) as
Configure the plant as shown in Fig. 2b where the first mass carriage is now clamped and the second is free. Repeat steps 5 through 8 for the second mass carriage to obtain
,
and
. How does this damping ratio compare with that for the first mass? Be sure to save this plotted data as it will be used in the next experiment.
Connect the mass carriage extension bracket and dashpot to the second mass as shown in Fig. 2c, and load four brass weights onto the second mass carriage. Open the damping (air flow) adjustment knob 2.0 turns from the fully closed position. Perform the necessary steps to obtain
where the "d" subscript denotes the dashpot. For this calculation use amplitudes
500 counts.
Each brass weight has a mass of
. (You may weigh the pieces if a more precise value is desired). Call the mass of the four weights combined
. Recall that the dynamics for a second-order system in terms of the Laplace variable
is given by
Compare the above with the equations of motion you derived in terms of mass, damping coefficient, and spring constant (
,
, and
). Use your knowledge of second-order systems along with your recorded values of
and
to solve for the unloaded carriage mass
, and spring constant
.
Repeat these calculations for the trials involving the second mass carriage and spring, mc2 and k.
Since the same spring was used in the experiments, the values for
that result from the above calculations should be very close. You may use the average of the two for all future calculations and experiments. Call this value
to denote the medium stiffness spring.
Now with your recorded values for
calculate
, the damping coefficient for the first mass carriage.
Repeat this calculation to find the damping coefficient for the second mass carriage,
.
Finally, calculate the damping coefficient of the dashpot,
.
Remove the carriage extension bracket and dashpot from the second mass carriage, replace the medium stiffness spring with the high stiffness spring, and perform the necessary steps to obtain the resulting natural frequency
. Repeat this frequency measurement using the least stiff spring to obtain
.Now you can compute
and
.
All dynamic parameters have been identified! Values for
and
for any configuration of masses may be found by adding the calculated mass contribution of the weights to that of the unloaded carriages. Be sure that you have filled in all of the system parameters in the table provided before proceeding.
The following is necessary to establish the hardware gain for control modeling purposes.
Remove the spring connecting the first and second carriages and secure four
brass weights onto the first carriage. Using the stop blocks, secure the second mass carriage clear from the first, and remove any stop blocks that are constraining the first carriage. Verify that the masses are secure and that the carriage slides freely. Position the first mass approximately
to the left (negative
position) of its center of travel.
Perform a
bidirectional step with a dwell time of
(recall that on the PXI,
counts corresponds to a voltage of
).
Plot the velocity data and observe the four segments of the profile with nominal shapes of: linear increase (constant acceleration), nearly constant velocity (zero acceleration), linear decrease (constant deceleration), and constant. Obtain the acceleration from the linear, positive-sloped segment of the velocity profile. Repeat this for the negative-sloped segment. You may call these two values
and
, respectively. Be sure that you account for the scaling of velocity data that is shown on the front panel graph indicator, and remember to include units in your calculation.Calculate the average of the magnitudes of the positive and negative accelerations (call this value
) to be used in obtaining
below.
Recall that the hardware gain for this system is given by
where
, the DAC gain, =
DAC counts
, the servo amp gain, = to be determined
, the servo motor torque constant, = to be determined
, the motor pinion pitch radius inverse, =
, the encoder pinion pitch radius inverse, =
, the encoder gain, =
pulses/2
radians
Using what you have learned about hardware gain, calculate a
value for the product
. Use this value to compute the hardware gain
.
Save any files or plots of interest. Stop and exit the VI,
power off the amplifier and PXI, and return all plant materials tothe instructor.
Post-lab
Complete the table below making sure to include units.
How do your values of
and
compare with
and
. Can
you explain why they may be different?
What were your values for
and
Are these values
sufficiently small for the approximations made in steps 6 and 8 tobe valid?
Explain the importance of accurately identifying the plant
parameters and hardware gain in terms of how they will affectcontroller design.