Genetic algorithm was introduced into the particle filtering in this paper. With the ability of global searching and optimizing, genetic algorithm overcomes the phenomenon of degeneracy and sample impoverishment. By simulation, the results show that the use of genetic algorithm to particle filtering is feasible, and this method is superior to the traditional re-sampling algorithm. Finally, the virtual realization of a standard particle filtering and genetic sampling particle filtering was made by LabVIEW. The experimental results proved that the genetic sampling particle filtering is better.