Nuclear Techniques ›› 2017, Vol. 40 ›› Issue (3): 30402-030402.doi: 10.11889/j.0253-3219.2017.hjs.40.030402

• NUCLEAR ELECTRONICS AND INSTRUMENTATION • Previous Articles     Next Articles

Data archive system of SECRAL-II based on C#

YUE Min, YUAN Chao, GOU Shizhe, ZHANG Wei, WANG Yongping, CHANG Jianjun   

  1. Institute of Modern Physics, Chinese Academy of Sciences, Lanzhou 730000, China
  • Received:2016-08-31 Revised:2016-12-12 Online:2017-03-10 Published:2017-03-11
  • Supported by:

    Supported by National Natural Science Foundation of China (No.11427904)

Abstract:

Background: Data archiving system is an important part of SECRAL-II (Superconducting Electron Cyclotron Resonance ion source with Advanced design in Lanzhou-II, SECRAL-II) control system which is based on the Experimental Physics and Industrial Control System (EPICS). The SECRAL-II researchers have special request for data archiving system, but the Channel Archiver of EPICS cannot satisfy their requirements. Purpose: This study aims to develop a novel data archive system to meet user's special requirements. Methods: EpicsSharp, a software library for the NET platform, is employed to implement the channel access protocol of EPICS. Based on C# language and Oracle database, EPICS Client library combined with Microsoft.Excel 14.0 object library are used to implement a novel data archive system which can read EPICS process variable (PV) values and save them into files in Excel format. Corresponding file management system based on hypertext preprocessor (PHP) is developed for user convenience and the safety of the file system. Results: The data system is stable and reliable and has been running in practice for half a year. Through the web browser, user can login into the file manager system and select any file to download to the local computer. Then the data file can be viewed or imported into another analysis system. Conclusion: The archive system is reliable and suitable for SECRAL-II control system. This scheme is applicable to the similar requirements of other control system.

Key words: SECRAL-II, EPICS, Oracle, PHP, Data archive

CLC Number: 

  • TL503.6