Real-Time Control Project

For this project, you will develop a PID controller that runs on QNX. Your controller will control a plant simulator that runs on the development station and generates the plant output signal through the Data Translation DT9812 data acquisition board. Here is a block diagram of the system you have:

 

You will use a standard PID controller, described by this transfer function, to control the plant simulation:

PID Controller

Your program will run the PID controller as a periodic task. During each control period, you will input the current plant output, compute an updated plant control signal, and output that control signal to the plant simulation. The plant simulation outputs the plant output on analog output channel 0 of the DT9812. It reads the plant control input on analog input 0.

When you have your test fixture functioning, you will experiment with the PID controller constants (kp, ki, kd) with the goal of minimizing both the overshoot and rise time of the plant. Use the table at the end of the Introduction to Z-Transforms lecture notes for heuristic guidelines for the effects of changing the three constants. Measure the rise time as the time from the change of set point to a plant response of at least 95% of the change in setpoint value.

Running the Plant Simulator

Starting the plant simulator requires two steps.  Start the CSPS simulation for this assignment by executing the Real-Time Simulation shorcut in the Start menu. This will open two Windows cmd windows, one for the CSPS computation kernel, and the second for the user interface. The shortcut also loads the appropriate plant and I/O port specifications for this assignment. There are 5 commands available to you through the simulation's user interface.  These are:

Guidelines for Implementation

Notes

Submission Instructions

After experimenting with different values for the PID controller constants, settle on the set that you feel provides the best tradeoff for minimizing both the overshoot and rise time. You will write a report, as a single Word document, describing the results of this experimentation. This report should include the following woven through the text of your report.

Create a zip file that holds the Word file with your report, and your QNX source code and include files. Before the date specified in the schedule, deposit this zip file in the Real-Time Control Project dropbox in myCourses.

Grading

Your work will be evaluated using this grading rubric.


$Id: RealTimeControl.html 138 2013-03-31 05:10:48Z jrv $