Summary: The ball and beam experiment represents a simple second order system. This system is easily simulated using four states, but is more difficult to implement in real-life because not all necessary variables are easily observed. This simulation assumes all four states are easily observed and the system is linear throught the operating region. The plant model and the controller of the system are simulated in LabVIEW using the LabVIEW Simulation Module.
The ball and beam experiment is built with two moving parts, the ball and a beam, typically having a track so to limit the balls movement to one dimension along the beam. A motor is used to change the angle of the beam from the center. Both the angel of the beam and the position of the ball must be measured. The state space model utilizes all four states for control of the model. Those include the x position of the ball, the velocity of the ball, the angle of the bar and the angular velocity of the bar. The controller makes use of these values to derive an error signal used for feedback.
| Interactive Ball and Beam Experiment |
|---|
![]() |
The Ball and Beam source code can be downloaded here: Ball and Beam Simulation VI
| Ball and Beam VI Block Diagram |
|---|
This VI was created with LabVIEW 8.20 and the LabVIEW Simulation Module 8.20.
Reference: Solution to the Ball and Beam Problem Using the State-space Design Method by William C. Messner, Carnegie Mellon University and Dawn Tilbury, University of Michigan
"This module shows an example second order system where the plant model and the controller of the system are simulated in using the LabVIEW Simulation Module. LabVIEW's 3D Picture Control is used […]"