Professional Documents
Culture Documents
Majid Lab 4
Majid Lab 4
Name:
CMS ID: 031-17-00
Objectives and Results & Report Structure and Conclusion Total (Out
Background Discussion Formatting, Figures & of 10)
Theory and Captioning References
20 % 40 % 25 % 15% 100 %
Page 0 of 13
Rubrics for Lab Reports BE-VI Fall 2019
S. Criteria Beginning Developing Competent Outstanding (90 Score
No. ( 0 - 40% ) ( 50 – 70% ) ( 70 – 90% ) – 100 %)
Page 1 of 13
References are
given.
Lab Learning Outcomes
After completing this session, student should be able to:
Understand the Time Response characteristics Control Systems
Understand the impact of gain and time constant on Transfer Function
Analyze the Time-Response of the 1st Order Systems
Solve for the Step and Impulse Response of 1st Order Systems.
Software/Hardware Required
LabVIEW Development Environment
Control System Design and Simulation Toolkit and Math Toolkit
It is possible to compute the time response of a system if the nature of input and the
mathematical model of the system are known. Obtaining the time response of a system involves
Page 2 of 13
numerically integrating the system model in time. The LabVIEW Control Design and Simulation
Module provides VIs to help you find these time-domain solutions. You can use these Time
Response VIs to analyze the response of a system to step and impulse inputs.
A t 0
u(t)
0 t 0
In LabVIEW, the Control Design and Simulation Module contains two VIs to help you measure
the step response of a system and then analyze that response
1. The CD Step Response VI: It returns a graph of the step response and step response
data. Step Response Graph displays a graph that shows the forced response of the
system when the forcing function is a step.
Page 3 of 13
internally calculates the time response data for which it calculates the parametric information.
If you use the External instances of this VI, you must specify the time response data for
which this VI calculates the parametric information.
Rise time (tr) — the time required for the dynamic system response to rise from a lower
threshold to an upper threshold. The default values are 10% for the lower threshold and
90% for the upper threshold.
Maximum overshoot (Mp) — the dynamic system response value that most exceeds
unity, expressed as a percent.
Peak time (TP) — the time required for the dynamic system response to reach the peak
value of the first overshoot.
Settling time (ts) — the time required for the dynamic system response to reach and stay
within a threshold of the final value. The default threshold is 1%.
Steady state gain — the final value around which the dynamic system response settles to
a step input.
Peak value (yp) — the value at which the maximum absolute value of the time response
occurs.
Page 4 of 13
Time Response of First Order System
The first order system has only one pole or we can say that degree of the denominator is unity
(one). The general form of 1st order system is shown below.
Where K is the D.C gain, is the ratio of the magnitude of the steady-state step response to the
magnitude of the step input and T is the time constant of the system, is equal to the time it takes
for the system's response to reach 63% of its steady-state value for a step input (from zero initial
conditions) or to decrease to 37% of the initial value for a system's free response.. Time constant
is a measure of how quickly a 1st order system responds to a unit step input.
𝑇𝐹 =
1.
Page 5 of 13
This transfer function is implemented in block LabVIEW and its responses are analyzed.
The Time constant affects the performance of 1st order control system. The parameters of above
transfer function (i.e. T=1.5) are recorded in following table. Now by changing the value of Time
Constant (T), we will see the effect on T/F.
• As when the value of “T” is increased, there is increase in Rise Time as well as increase
in Settling Time.
• From the T/F equation, when “T” will increase, the value of Pole of the T/F will decrease
and goes toward origin (zero).
Page 6 of 13
15 33 69 -0.07
In the following figure, the graph of the T/F shown. Also the responses of step and impulse
signals are shown, when they are applied on the input of T/F.
Figure 9: Front panel shows the responses, stability and value of Pole of T/F
Lab Exercises
Perform its mathematical modelling and obtain its transfer function. In RC circuit time
constant (T=RC), Take R=C=1 and implement it in LabVIEW.
Solution:
The above circuit is a low pass filter, in which the output (voltage) is taken across the capacitor.
Assume that the capacitor is initially uncharged and we want to charge it with an input source
Vs. So current flows into the capacitor and accumulates a charge there. As the charge increases,
the voltage rises, and eventually the voltage of the capacitor equals the voltage of the source, and
current stops flowing.
As Transfer Function is the output-input relation. Here the T/F of this circuit G(s) is:
Page 7 of 13
𝑉𝑐
𝐺(𝑠) =
𝑉
Where Vc(s) is the output voltage (across C) and V(s) is the input voltage. (In Laplace form)
Then (𝑡) = 𝑅𝐶 𝑑 𝑣
𝑑𝑡
(𝑡)
+ 𝑣𝑐(𝑡)
By taking Laplace Transform on both sides of the above equation, we will get;
𝑉𝑐 1
=
𝑉 𝑅𝐶𝑠 + 1
So the T/F of this system is;
1
𝐺(𝑠) =
𝑅𝐶𝑠 + 1
If we compare above equation to the general form of 1st order system, then K = 1 and T = RC,
Because R = C = 1, as given in task. So,
1
𝐺(𝑠) =
𝑠+1
The term RC is the resistance of the resistor multiplied by the capacitance of the capacitor, and
known as the time constant, which is a unit of time. The function completes 63% of the transition
between the initial and final states at t = 1RC, and completes over 99.99% of the transition at t =
5RC.
Page 8 of 13
Now, we will implement this System on LabVIEW, as shown in following figure.
The equation of RC transfer function is obtained, also the Impulse and Step responses of the T/F
is shown in the graphs , PZ-map is plotted and the value of pole shows that system is stable (as
pole is on the left side of the s-plane) all are shown in the following diagram;
Page 9 of 13
Figure 11: Characteristics of RC circuit , where R=1, C=1
The system is seemed to be stable in both responses i.e. step response and impulse response.
2. Consider following 1st order Electrical System, Perform its mathematical modelling and
obtain its transfer function. In RC circuit time constant (T=L/R), Take R=L=1 and
implement it in LabVIEW.
Solution:
Assume that the Inductor is initially uncharged and we want to charge it with an input source Vs.
The inductor initially has a very high resistance, as energy is going into building up a magnetic
field. Once the magnetic field is up and no longer changing, the inductor acts like a short circuit.
The current at steady state is equal to Io = Vs / R. Since the inductor is acting like a short circuit
at steady state, the voltage across the inductor then is 0.
As Transfer Function is the output-input relation. Here the T/F of this circuit G(s) is:
𝐼(𝑠)
𝐺(𝑠) =
𝑉(𝑠)
After applying KVL on the circuit, we will get:
𝑣(𝑡) = 𝑣𝑟(𝑡) + 𝑣𝑙(𝑡)
Page 10 of 13
As
𝑑 𝑖(𝑡)
𝑣𝑙(𝑡) = 𝐿
𝑑𝑡
𝑑𝑡
By taking Laplace Transform on both sides of the above equation, we will get;
𝐼 1
=
𝑉 𝐿𝑠 + 𝑅
So the T/F of this system is;
/𝑅
()
𝐺𝑠 =
If we compare above equation to the general form of 1st order system, then K = 1/R and T = L/R
Because R = L = 1, as given in task. So,
𝐺(𝑠) =
𝑠
The time constant for the RL circuit is equal to L / R. Now, we will implement this System on
LabVIEW, as shown in Figure 12.
The equation of RL transfer function is obtained, also the Impulse and Step responses of the T/F
is shown in the graphs.
PZ-map is plotted and the value of pole shows that system is stable (as pole is on the left side of
the s-plane) all are shown in the Figure 13.
It is shown in Figure 13 that the system is remain stable in both types of responses (when step
signal is applied and impulse signal is applied).
Page 11 of 13
Figure 12: Block diagram of the T/F
Conclusion
Page 12 of 13
In this lab, we analyzed first order control system. We understand the characteristics of this
system. Also we learnt to find the responses that are applied on it. We learnt the parametric time
response.vi and used its internal characteristics for the response of T/F i.e. rise time, peak time,
settling time, steady-state gain etc.
References
• https://www.tutorialspoint.com/control_systems/control_systems_time_response_analysi
s.htm
• http://ctms.engin.umich.edu/CTMS/index.php?example=Introduction§ion=SystemA
nalysis
http://hades.mech.northwestern.edu/index.php/RC_and_RL_Exponential_Responses
Page 13 of 13