LabVIEW Simulation Exercises
LabVIEW Simulation Exercises
birth rate = bx
𝑥̇ = 𝑏𝑥 − 𝑝𝑥 3
We will simulate the number of bacteria in the jar after 1 hour, assuming that initially there are 100 bacteria
present.
Procedure:
Block Diagram:
Simulation Result:
In this exercise you will construct a simulation diagram that represents the behavior of a dynamic system. You
will simulate a spring-mass damper system.
where t is the simulation time, F(t) is an external force applied to the system, d is the damping constant of the
spring, k is the stiffness of the spring, m is a mass, and x(t) is the position of the mass. 𝑥̇ is the first derivative of
the position, which equals the velocity of the mass. 𝑥̈ is the second derivative of the position, which equals the
acceleration of the mass.
The goal is to view the position x(t) of the mass m with respect to time t. You can calculate the position by
integrating the velocity of the mass. You can calculate the velocity by integrating the acceleration of the mass.
If you know the force and mass, you can calculate this acceleration by using Newton's Second Law of Motion,
given by the following equation:
Therefore,
Substituting terms from the differential equation above yields the following equation:
1
𝑥̈ = (𝐹 − 𝑑𝑥̇ − 𝑘𝑥)
𝑚
You should create the block diagram for the mass-spring-damper model above in LabVIEW and Simulate it
(make a plot).
Try out different values for the parameters (m, k, d, etc.) that are used the simulation.
Below you see a Block Diagram of the system (which you should implement using the blocks available in
LabVIEW):