0% found this document useful (0 votes)
54 views7 pages

Lab Report CS 1

The document describes Lab #1 which aims to construct mathematical models of mechanical, electrical, electronic, and electromechanical systems using LabVIEW. Students will model integrator and differentiator circuits, RLC circuits, and DC motors to derive their transfer functions and analyze stability, step response, and poles and zeros. MATLAB code is provided to model the systems and evaluate their characteristics. The lab helps students learn to mathematically model different systems in LabVIEW and analyze system properties.

Uploaded by

ubaid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views7 pages

Lab Report CS 1

The document describes Lab #1 which aims to construct mathematical models of mechanical, electrical, electronic, and electromechanical systems using LabVIEW. Students will model integrator and differentiator circuits, RLC circuits, and DC motors to derive their transfer functions and analyze stability, step response, and poles and zeros. MATLAB code is provided to model the systems and evaluate their characteristics. The lab helps students learn to mathematically model different systems in LabVIEW and analyze system properties.

Uploaded by

ubaid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

EEE325– Control Systems

Lab # 01
To Construct Mathematical Models of Mechanical,
Electrical, Electronic and Electro-mechanical Systems using
LabVIEW

Name

Registration Number

Class FA18-BSEE-E

Instructor’s Name

1
LAB #1: To Construct Mathematical Models of Mechanical,
Electrical, Electronic and Electromechanical Systems using
LabVIEW

Objective
• The objective of lab experiment is to Construct mathematical models of various systems such as,
Electrical, Electronic and Mechanical and implement the developed models on LabVIEW to
Display their characteristics such as stability, step response and impulse response and Assemble
the model of an electro-mechanical system to Sketch its speed and position characteristics on
LabVIEW
Required:
Software
• MATLAB/LABVEIW

Methodology
Two of the most important types of mathematical modelling Transfer Function and State Space Modelling
In this lab, we will study only transfer function implementation of various physical systems. We will study
three types of systems which include Mechanical system, Electrical System and Electronic System. First of
all, we will derive the transfer function of these systems on paper, and after that we will learn to implement
these models on LabVIEW and finally we will see how to analyze the systems through their mathematical
models on LabVIEW in this we do the modelling of translational mechanical system This system can be
mathematically modelled by Newton’s second law of motion which states that the acceleration ′𝑎′ of a
body is parallel and directly proportional to the net force F acting on it and inversely proportional to the
mass M of the body. we also do their transfer representation in LabVIEW. While transfer function allows
us to examine the effects of coefficients of a system, it does not give any explicit information about the
poles and zeros of the system, so we also do the pole zero gain representation in LabVIEW. In lab
experiment we are analyzing the electronic system for this purpose we Are using Mathematical Models of
Integrator and Differentiator Circuits and electrical system Using Mathematical Models of 𝑅𝐿𝐶 Circuit and
for electromechnical system we Are using Mathematical Models of DC Motor derived
Lab task
Task 1
Using Mathematical Models of Integrator and Differentiator Circuits described in pre lab session, do the
following.
a) Implement the models in LabVIEW. Write down the expression below
b) Represent the system in Pole-Zero-Gain Form. Write down the expression below
c) Evaluate and plot poles and zeros of the systems. Write numeric value below
d) Comment on stability
e) Find out Step Response of Systems

MATLAB CODE
clc
clear all
close all
R=47000;
C=0.1*10.^-6;
L=0.01;
num=[1];
dnum=[-R*C 0];
sys= tf(num,dnum)
step(sys)
figure
impulse(sys)
figure
pzmap(sys)
[z,p,K]=zpkdata(sys)
Output

Differentiator:
MATLAB CODE
clc
clear all
close all
R=47000;
C=0.1*10.^-6;
L=0.01
num=[-R*C 0]
dnum=[1]
sys= tf(num,dnum)
pzmap(sys)
[z,p,K]=zpkdata(sys)
OUTPUT
Lab task 2
Using Mathematical Models of 𝑅𝐿𝐶 Circuit described in pre lab session, do the following.
a) Implement the models in LabVIEW. Write down the expression below.
b) Represent the system in Pole-Zero-Gain Form. Write down the expression below.
c) Evaluate and plot poles and zeros of the systems. Write numeric value below.
d) Comment on stability.
e) Find out Step Response of Systems
MATLAB CODE
clc
clear all
close all
R=47000;
C=0.1*10.^-6;
L=0.01
num=[1]
dnum=[L*C R*C 1]
sys= tf(num,dnum)
step(sys)
figure
impulse(sys)
figure
pzmap(sys)
[z,p,k]=zpkdata(sys)
OUTPUT

TASK 3
Using Mathematical Models of DC Motor derived in pre lab session, do the following. Attach simulation
results with the report
a) Implement the Simulink Model for Speed of the System on Matlab Simulink
b) Find out Step and Ramp Response of the System. Justify the shape of the Response
c) Implement the Simulink Model for Position of the System on Matlab Simulink.
e) Extract Linear Model of the System. Compare the results with those of Simulink Model
MATLAB CODE
OUTPUT

Task 3
Develop mathematical model of the following lead-lag network. Represent this model in both transfer
function form and pole-zero-gain form
Matlab code
R1 = 100;
R2 = 1000;
C1 = 100e-6;
C2 = 100e-6;
num = [-R1.*R2.*C1 -R2];
den = [R1.*R2.*C2 R1];
sys = tf(num,den)
pzplot(sys);
output
Conclusion
In this lab we learn the mathematical modeling of different system including mechanical electrical
electronic and electrotechnical system on lab view to display their characteristic This lab helped to
familiarization with systems, their types and transfer function and their stability. With the help of
different commands in MATLAB poles and zeros of different transfer functions were plotted and
observed. The change in output and stability with different types of responses were observed. Impulse
Response, Step response, Ramp response of different systems were observed. The Mathematical models
of different systems were also implanted through Simulink

You might also like