LAB 03: IMPLEMENTATION OF
TRANSFER FUNCTION OF MECHANICAL
SYSTEMS
Objective:
We will find the transfer function of a translational mechanical system. We will perform
tasks on LABVIEW and MATLAB.
Introduction:
A transfer function (also known as the system function or network function and, when
plotted as a graph, transfer curve) is a mathematical representation, in terms of spatial or
temporal frequency, of the relation between the input and output of a linear time-invariant
system with zero initial conditions and zero-point equilibrium. MATLAB and LABVIEW
provide functions for the implementation of transfer functions.
Equipment Required:
1. LABVIEW software
2. MATLAB software
Task 1: Symbolic Implementation of Transfer Function in LABVIEW
Procedure:
1. In the Block Diagram panel, right-click to open the Functions panel and select the Control
and Simulation menu.
2. Click on SISO Symbolic.
3. Select Model Construction.
4. Click on CD Construct Transfer Function Model.
5. Create Control of numerator, denominator, and variable.
6. From Model Construction, click on CD Draw Transfer Function Equation.
7. Now create an Indicator from the block.
SISO Symbolic:
Front Panel:
Task 2:
Front Panel:
Implementation on MATLAB:
Task 1:
Code:
% Define numerator and denominator coefficients
numerator = [12 12 36];
denominator = [32 288 456 400 272 96 0];
% Create the transfer function
sys = tf(numerator, denominator);
% Display the transfer function
disp('Transfer Function:');
disp(sys);
% Optional: Plot step response
step(sys);
title('Step Response of the System');
Plot:
Task 2:
Code:
% Define numerator and denominator coefficients
numerator = [2 9];
denominator = [15 40 118 132 54];
sys2 = tf(numerator, denominator);
disp('Transfer Function:');
disp(sys2);
step(sys2);
title('Step Response of the System (Task 2)');
Plot:
Conclusion:
In this lab, we learned how to derive and analyze the transfer function of a mechanical
system using LabVIEW and MATLAB. We used LabVIEW blocks to input the system's
numerator and denominator coefficients, allowing us to model and visualize the system
behavior. MATLAB was then used to simulate the same transfer function and analyze
system responses. This helped us understand the dynamic behavior of mechanical systems.
Overall, the lab enhanced our skills in system modeling and reinforced the importance of
transfer functions in control systems.