| The plasma control system(PCS)is a subsystem of the Experimental Advanced Superconducting Tokamak(EAST),which is a system that can control parameters such as plasma current,density,and shape.There will be abnormal events during the plasma discharge process.Abnormal events will produce some error messages.At the same time,the modification of some parameters and the selection of the algorithm will cause the operation record,the error information and the operation record belong to the log information of PCS.The existing log system error message is located in the system running log file,this file also has a large number of system running state information,such as CPU start off state,memory allocation size,discharge phase and so on.And this information occupies the majority,is not conducive to fast positioning to find the wrong message.And each operation record lacks the corresponding discharge number.the operation content also does not according to the user and according to type classification display,this also is not conducive to the quick search.This article starts with PCS existing log processing system.The code of PCS message server is analyzed,and the data flow generated by the system running log file is studied.The module of the operation record in the waveform service is also analyzed and the data flow generated by the operation record is studied.Through the analysis of the existing data flow of the two kinds of log information,it is proposed to construct the PCS real-time log information system.The system extracts the two log information and processes the operation record,and then sends the two log information into the database in the discharge process in real time.This article through the MySQL database to storage extracting log information,and modify the PCS makefile,joined the MySQL compiler link parameters,and then use the Python interface to complete the log information visualization and query functions.Finally,use the data simulation server to generate a log file to verify the correctness of the real-time log system. |