In order to improve the diesel engine emission performance and convert the diesel engine to dual fuel engine, a dual fuel (diesel and compressed natural gas (CNG)) electronic system was developed, in which electromagnetic valves were used to control multi point natural gas injection. The system was designed for type F6L912Q diesel engine and the function of the system was testified on test cell. The test results showed that the system had great advantages in power ability and emission performance. The average CNG substitution at rated load was over 80%. The dual fuel system was practical. To adopt dual fuel system was a good way to improve the engine's emission performance.