unit step function - university of tennessee at...

12
Lanze Berry 9/16/2012 1 Unit Step Function By Lanze Berry University of Tennessee at Chattanooga Engineering 3280L Blue Team (Khanh Nguyen, Justin Cartwright) Course: ENGR 3280L Section: 001 Date: September 16, 2012 Instructor: Dr. Jim Henry

Upload: vudang

Post on 07-Mar-2018

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

1

Unit Step Function

By Lanze Berry

University of Tennessee at Chattanooga

Engineering 3280L

Blue Team (Khanh Nguyen, Justin Cartwright)

Course: ENGR 3280L

Section: 001

Date: September 16, 2012

Instructor: Dr. Jim Henry

Page 2: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

2

Introduction

There were two objectives to attain in this laboratory. The first objective was to continue

to familiarize ourselves with our system, both the apparatus and the fundamentals of controlling

and guiding it. The focus in this laboratory was to reach an understanding of the unit step

function evaluated at specified inputs. The second objective was to collect experimental data on

the current output of our system for each percent power that was input into the system.

This report will go over in detail the background and theory behind the experiment which

will then be followed by the procedure. The results of the experiment will then be presented and

then there will be a discussion of the results. The final two sections will include the conclusions

and recommendations. Lastly, there will be an appendix containing raw data.

The background and theory section will contain information relevant to the set up of the

lab. This will include all the necessary technical data and schematics. The procedure will

provide an analysis of the experimental methodology. The results will be given in the form of

graphs, tables, and charts of the data obtained during the experiment. The conclusion segment

will reiterate the goals of the experiment and also explain the principles behind it. The

recommendations section will follow and highlight potential criteria of the experiment that can

be changed or improved. The appendix will contain any additional graphs or data not included

in the body of the report.

Page 3: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

3

Background and Theory

There are four main types of unit step functions. There are unit steps functions, pulses,

unit impulse functions, and sine waves. This laboratory will focus on the unit step function only

and show the dynamics of it. A unit step function will be developed using the data acquired by

the computer. This will help show the significance of the unit step function and help provide an

understanding of the experiment.

The materials used in this lab are a computer, motor, generator, controller, transmitters

and light bulbs. A computer program called LabVIEW is used to graph the readings of the

experiment. The computer is used to send a constant input power signal to the motor. The motor

will then cause the generator to produce amps. A signal will then be sent back to the computer

as an output. Once the signal is received by the computer, LabVIEW will then graph the input

and output readings. Once this has been done, the data can be read by EXCEL, which will help

in the analysis of the data. Figure 1 shows the schematic of the motor-generated system.

Figure 1: Schematic of the Motor- Generated System

Computer

Motor Generator

Light Bulbs

JT 101

JRC 101

ERT 101

Page 4: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

4

Figure 1 demonstrates in schematic form the procedure of sending an input and receiving the

output. The computer sends a signal to the power transmitter (JT 101) which in turn relays it to

the power-recording controller (JRC 101). Once the signal is received, it is sent to the motor

where the percentage power is the input. The motor begins to turn and the mechanical energy is

converted to electrical energy. The generator uses electromagnetic induction to convert the

energy. The new electrical energy is then used to create current to the light bulbs. The generator

then sends an amps output signal back to the (ERT) and relays the signal to the computer where

it is interpreted in LabVIEW as a graph. The block diagram is shown in Figure 2.

Figure 2: Block Diagram of the Motor-Generated System

Figure 2 shows the input to the system on the left hand side of the block. The input is the time

allotted (in seconds) for the experiment and the motor power (in a percentage from 0 to 100).

The output response from the system is shown on the right side of the block. The output C(t)

demonstrates that it is a function of time. The output also contains the generated amps. The

system responds by giving a different amp output to each different input containing the time and

motor power percentage used.

Motor-

Generator

System

Input M(t)

Motor Power (%)

Output C(t)

Generated Voltage (V) Generated Amps (A)

Page 5: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

5

Procedure

The experiment begins with using a computer. A program called LabVIEW is used as

system control and it collects data throughout the duration of the experiment. This program was

accessible through the internet and the Control Systems class website. Once the Current

Information Systems group was selected, a choice appeared to begin collected data for the Unit

Step Function. Once this was selected, a screen appeared with credentials to fill out (name,

email, etc…). Also, a space was provided to enter the how many seconds the experiment was to

last and there was also a space to enter at what percentage the power should be. Once the

criterion was complete, the program would conduct the experiment according to the time and

percentage entered. The program then records and plots the data into a data base. This process

was done three times by each group member for a unit step function. The data was then

translated into excel to plot a steady state operating curve and to statistically analyze the data.

Figure 3 shows the flow of information in LabVIEW.

Figure 3: Flow of Information to and from LabVIEW

Page 6: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

6

Results

Each experiment conducted collected data to create plots of the current output vs. time vs.

power input percentages in excel. Figure 4 shows a sample of a graph obtained from the

experimental data.

Figure 4: Graph of data collected for Unit Step Up Function

The output current is on the left side of the graph and measured on the secondary y-axis. The

time in seconds is located on the x-axis and the input percentage is located on the primary axis.

The blue line represents the input percentage. Figure 4 has an input percentage of 39% and has a

20% step height. Each graph had criteria that needed to be determined on it. Figure 5 shows

how the time constant was to be determined for the same input percentage as well as the gain and

the dead time. Each was calculated and shown on the graph.

0

0.2

0.4

0.6

0.8

1

1.2

1.4

1.6

1.8

0

10

20

30

40

50

60

70

3 4 5 6 7

Ou

tpu

t (A

MP

S)

Inp

ut(

%)

Time (sec)

Unit Step Up Graph

Motor Input Power (%)

Output Current (Amps)

Page 7: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

7

Figure 5: Input Percentage of 39.5%

The results gathered by analyzing all of the experimental runs were then used to create a unit

step function. The data that created this function is shown in Table 1.

Input (%) Gain (cm-amps/%) Dead Time (sec) Time constant (sec)

38 0.04 0.11 0.42

39 0.04 0.11 0.43

40 0.05 0.108 0.45

41 0.05 0.11 0.46

42 0.05 0.11 0.47

43 0.05 0.11 0.48

50 0.05 0.11 0.32

51 0.05 0.11 0.32

52 0.05 0.11 0.16

53 0.05 0.11 0.16

53.5 0.05 0.11 0.32

54.5 0.05 0.11 0.31

65 0.07 0.11 0.72

66 0.69 0.11 0.76

67 0.07 0.11 0.82

68 0.08 0.11 0.88

69 0.08 0.11 0.94

69.5 0.08 0.11 0.94

Table 1: Summary of Results for the Unit Step Function

Page 8: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

8

The unit step function for the motor-generator system (using Table 1) is shown in Figure 6.

Figure 6: Unit Step Function for the System

Page 9: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

9

Discussion

This experiment dealt with analyzing the unit step function using signal processing. The

results explore the gain, dead time, time constant, and height of the step. The graphical

representations provide the best understanding of the unit step function. Through the graph, it is

visually seen where the input percentage jump is located and how it affects the output. The

current increases almost simultaneously with the input jump. Using just the graph, all the details

necessary for the experiment are provided. The dead time can be found using slope of the

current and the start of the input percentage jump. The time constant and the gain can also be

calculated with help of the graph.

It is determined that the motor input level greatly affects the output. When the jump of

the input percentage occurs, the amps greatly increase to follow that jump which in turn

represents the unit step. The initial part of the graph is disregarded because the data is constant

until the step begins. Figure 6 has a time range of four to seven seconds because that is the part

of the experiment to be focused on. Everything prior and after that time zone range is constant

and doesn’t provide any crucial data for evaluating the unit step function.

Page 10: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

10

Conclusions and Recommendations

The experiments that were conducted were done to collect data and to analyze the data to

further understand the Unit Step Function. The results that were obtained show clear unit steps

in each of the graphs and present the principles of the unit step function. The experiment

validates that when there was an input percentage increase; the output also increased and then

became constant.

The primary objectives of this experiment were to collect experimental data and to

understand and know how to analyze the unit step function. Each of these objectives was

reached. The data was collected using LabVIEW and put into an excel spreadsheet where it was

then created into a graph. Using the graph, the unit step function was analyzed and the dead

time, time constant, and gain were found. The results clearly present the data in concise and

detailed graphs.

Page 11: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

11

Appendix

Some of the graphs had some issues and are still being fixed but will be updated in the final

copy.

Page 12: Unit Step Function - University of Tennessee at Chattanoogachem.engr.utc.edu/.../lanze-Unit+Step+Function-11.pdf ·  · 2012-12-08Lanze Berry 9/16/2012 1 Unit Step Function By Lanze

Lanze Berry

9/16/2012

12

References

1. http://chem.engr.utc.edu/3280L

2. Carlos A. Smith and Armanso Corripio, Principles and Practices of Automatic Process

Control, John Wiley & Sons Inc, 3rd

Ed., 2006