The disadvantages of sampling and testing of painting pretreatment tank were analyzed,a new online analysis and control system for pretreatment was proposed,and the features,functions,components and investment cost return of the system were introduced in detail.