Lab: Motor speed control with LabVIEW
General information
Organization of the lab is given in the lecture plan.
A short report must be sent to the teacher via e-mail to
finn.haugen@hibu.no no later than 4 pm
Friday 14. November 2008. Requirements to the report:
- It must describe the answers to the tasks (see below). The answers can be
in the form of pictures of the PC screen (create a picture with Alt +
PrintScrn, and then paste it into your document with Ctrl+V) together with
your short comments. Write the report while you are working on the lab!
(The report is actually more of a lab protocol. Do not write about general
theory.)
- Send the report as a DOC or a PDF file (preferably PDF).
Equipment
Tasks
The teacher will give a short description of the lab station in the beginning of
the session.
Try to work effectively because the time is short. It is acceptable to
not complete all the tasks given below within the assigned time.
- Settings of the lab station: Connect the I/O device to the lab
station.
- Opening and setting of the temperature control LabVIEW program:
Download speed_control.zip to
any folder you prefer, then unzip the files, and finally open the LabVIEW
program speed_control.vi which is one of the unzipped files. Set
the Setpoint (y_SP) range [krpm] element with 1 krpm (kilo revolutions
per minute) as maximum and 0 krpm as minimum. Controller output (u) range
[V] element with 5 V as maximum and 0 V as minimum. Set the measurement
filter time constant to 0.2 sec.
- Configuring the USB-6008 I/O device: Create a task for for control
signal writing (analog output, or AO) and a task for measurement signal
reading (analog input, or AI) via the task elements on the front panel of the
program. How to create a task is described in item 2
here. You can define a voltage range of 0 - 5V for the measurement task,
and the voltage range of 0 - 5V for the control task.
- Calculating the measurement scaling function: Calculate manually
the coefficients a and b according to the following information: The speed measurement
in the range of 0 - 5 V corresponds to
speed values in the range of 0 - 1 krpm, with a linear relation between V
and krpm. Then enter these a and b values into the front panel of the
program.
- Controller tuning: Tune a PI controller for the process (including
the measurement filter) using the P-I-D-method. During the tuning you can
apply steps of e.g. 0.1 krpm in the setpoint to excite the dynamics of the
control system. The nominal operating point value of the setpoint is defined
as 0.5 krpm. Remember to manually bring the process to or near the
operating point (by manually adjusting the control signal). The process is
close enough to the operating point if the speed does not deviate more
than say 0.1 krpm from the operating point value. Check if the
stability of the control system is ok after the tuning by applying a small
step of e.g. 0.1 krpm in the setpoint. (Do not use too much time on tuning the
controller, but the control system must of course have ok stability. It is
sufficient that you include only the picture of the stability check together
with a proper comment in for this subtask in your report.)
- Steady-state control error:
- What is the steady-state control error after a step change (of say 0.2
krpm)
of the setpoint? (After the experiment, set the setpoint back to its nominal
value.)
- What is the steady-state control error after a step change of the
disturbance, i.e. breaking the motor by holding your hand on the load weel?
- Measurement noise:
- Does the measurement filter make the control signal smoother compared to
not having a filter? To remove the filtering action, set the Tf = 0
sec. (After the experiment, set Tf back to its default vaue, 0.2 sec.)
- Add derivative control action by setting Td to e.g. 0.3 s. How does this influence the behaviour of the
control signal? (After the experiment, set Td back to 0.)
- Changing the stability of the control system (to clearly observe
the concequences of the change of the parameter settings you can apply a
setpoint change of e.g. 0.1 krpm after the parameter change):
- What happens to the stability of the control system if the controller
gain is increased to a relatively large value?
- What happens to the stability of the control system if the integral time
is decreased to a relatively small value?
- What happens to the stability of the control system if you set the PID
controller to direct mode (i.e. some negative controller gain)?
[Course home page]
Oppdatert 11.11.08 av
Finn Haugen, faglærer.
E-postadresse:
finn.haugen@hibu.no
|