Introduction To set up an online proton beam diagnostic system near the neutron production target of China Spallation Neutron Source (CSNS), a luminescence coating sprayed on the target window and a corresponding optic system were fabricated. In the work, the fabrication of Results The emission spectrum excited by 532-nm laser has two obvious peaks at 692.9 nm and 694.3 nm. The samples by flame spraying process with the powders obtained from melting method show higher luminescence intensity than the samples by plasma spraying process. It is observed that the luminescence intensity has some relationships with the alpha phase in the samples, which is deduced from the XRD and photoluminescence tests results. A lower temperature during the flame spraying process will help to keep more alpha phase in the material. The selected four samples show successful fluoresced results in the radioluminescence experiment. Conclusions The luminescence intensity of the coating is improved greatly by the studies on the fabrication process and the characteristics of the samples. The luminescence coating used in beam diagnostics will be fabricated by the confirmed technical process. More works will be continued to improve the characteristics of the luminescence light by controlling Cr concentration and annealing in 1200 ∼ 2000 • C environment in the future.