
CONTROLS LAB
NOTE: All table and figure references are to the TA Presentation for this laboratory.
Motor Parameter Data Collection
Method 1:
1. Start Matlab and start Simulink. Use the Simulink icon or the Matlab command “simulink”.
2. From the Simulink File menu, open the special Simulink model template called “Control_Template1.mdl” as
shown on figure 1 of the lab presentation.
3. Specify an initial value for your step input voltage in the Matlab command window. (e. g. vin = 0.8)
4. Build your model by selecting RTW Build from the Simulink Tools menu.
5. Specify the data to be plotted by selecting Plot -> New -> Scope... from the WinCon Server toolbar.
6. Set the amount of data stored to 20 seconds by selecting Update -> Buffer in the Scope window.
7. Adjust the y-axis range by selecting Axis -> Fixed Range... from the Scope window menu. A reasonable
range is Ymin=0 and Ymax=20.
8. Start the run by pressing the big green Start button on the WinCon Server toolbar. Stop the run after the
motor speed reaches steady-state (use your judgement) but before the plot reaches the end of the graph. If the
plot reaches the end of the graph, the buffer is reset and you have to start over.
9. Save the data by selecting File -> Save -> Save as M-file… from in the Scope window. Give the file a
descriptive name that includes both your group name and information about the run.
10. Repeat the procedure above for 5 voltages: vin={0.8, 0.9, 1.0, 1.1, 1.2}(Step 3). NOTE: Model does not
need to be rebuilt for each run!
Non Linearity Data Collection
1. With the WinCon Server toolbar still open, set “Vin” to 0.9 in the Matlab command window and start the run.
2. Reduce “Vin” and run again. Repeat until the motor does not turn. This is the upper limit of the “Deadzone”
of the motor. Find this point to two decimal places (e.g. 0.54 V) and record the value.
3. Repeat the procedure above to find the lower limit of the “Deadzone” by starting “Vin” at -0.9 and increasing
it until the motor does not turn. Find this point to two decimal places (e.g. -0.54 V) and record the value.
Analysis:
Parameter Identification for Method 1:
Open one of the 5 data files created in Motor Parameter Data Collection Part 1 by typing the name of the file
without the “.m” extension in the command window. This will load the data from that file as a variable in the
workspace and plot the data in a new window.
2. Find the steady-state speed ss by inspection of the graph and enter this data in the appropriate place in
Table 2.
3. Use the steady-state speed ss to calculate the motor constant, Km, according to the formula
(5)
4. Calculate the characteristic speed of the motor *:
(6)
5. By inspection of the graph, determine the time constant Tm of the motor, which corresponds to the
characteristic speed and enter this data in the appropriate place in Table 2.
6. Repeat the steps above to find the constants corresponding to each step input voltage “Vin”.
Model Verification
min
s
ss
KVsst
)(lim)(
0