Mass Spring System: Objective
Mass Spring System: Objective
Objective:
To design a suitable Mass spring system to obtain optimal performance of
the system.
Equipment/Software:
➢ NI LabVIEW Software
Tasks:
1. To understand the working of a control system.
2. To get familiar with the use of system simulation software i.e. LabVIEW.
3. To conceptualize and make a working control system on the simulation software.
4. To get understanding of working of a mass spring system.
Purpose:
To designed a mass spring control system.
We will simulate this system using LabVIEW environment. LabVIEW can be used to
simulate a dynamical system in a block diagram form. This section will describe how to
simulate a transfer function in LabVIEW.
We need summation, multiplication and integration to be applied on this control system,
in order to stabilize it.
Introduction: -
Mass spring system model:
To find the transfer function for a single translational mass system with spring and
damper.
The methodology for finding the equation of motion for this is system is described in
detail in the tutorial Mechanical systems modeling using Newton’s and Alembert
equations.
The ordinary differential equation describing the dynamics of the system is:
where:
m [kg] – mass
k [N/m] – spring constant (stiffness)
c [Ns/m] – damping coefficient
F [N] – external force acting on the body (input)
x [m] – displacement of the body (output)
The input of the system is the external force F(t) and the output is the
displacement x(t). First we’ll apply the Laplace transform to each of the terms of the
equation (1):
Replacing the Laplace transforms and initial conditions in the equation gives:
We have now found the transfer function of the translational mass system with spring
and damper:
To prove that the transfer function was correctly calculated, we are going to use a
simple Xcos block diagram to simulate the step response of the system.
Equipment:
Following equipment were used in the LabVIEW software during the production
of the mass spring control system.
• Summation
• Multiplication
• Integrator
• Waveform Chart
• Knobs
Simulation on LabVIEW:
Procedure:
1. First of all, I open the LABVIEW Software, draw the box in the block diagram
window to create the new control and simulation structure. On the blank vi sheet,
I started to place the required components accordingly.
2. Place two integrators & a Sim Time waveform icon in the block diagram.
3. To set the parameters for the system, we need to create the controls (input).
However, over numeric & select numeric controls. We will create the numeric
controls & parameters required for the simulation.
4. For the two gains will be set by B & k controls. Then connect the corresponding
controls to the input port of the function block.
5. Connect the terminal by hovering over the icons terminal & clicking to connect
the wires.
6. The simulation can be executed by clicking the right pointing arrow button in main
toolbar of the front panel. You might need to increase the simulation time. To do
this, go to block diagram click on the small box that is on the left side of the
simulation loop, & increase the final time. Then execute the code again.
7. Switch the front panel & set the parameters on the front panel.
Data Analysis:
Conclusion:
I concluded that the working of a stable system depends upon different feedback
factors in order for it to work properly.
I came to know the significance of different function blocks that is used to model the
mass spring system.
I got the understanding of working with the simulation software in order to design
stable control systems.