An inverted pendulum is a classic control problem and is widely used as a benchmark for testing various control algorithms. First, this paper analyse the dynamic and non-linear model of the inverted pendulum, then focus on the real-time control of the inverted pendulum, we developed real-time control software for the single-stage inverted pendulum by using Visual C++ 2010, its mainly operate API functions to control board and implement various control algorithms.