  The China Spallation Neutron Source (CSNS) accelerator uses H- stripping and
phase space painting method of filling large ring acceptance with the linac
beam of small emittance. The beam commissioning software system is the key part
of CSNS accelerator. The injection beam commissioning software for CSNS
contains three parts currently: painting curve control, injection beam control
and injection orbit correction. The injection beam control contains two
subsections: single bunch beam calculation and LRBT beam control at the foil.
The injection orbit correction also contains two subsections: injection orbit
correction by the calculation and injection trim power control.
